projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Bunch of fixes related to portability.
[m6w6/libmemcached]
/
lib
/
memcached_auto.c
diff --git
a/lib/memcached_auto.c
b/lib/memcached_auto.c
index acb554b149bd4dd220ce0eaf3899681503152f96..aa7ce5dfcddfd87de212be53e8c447d1818c3f20 100644
(file)
--- a/
lib/memcached_auto.c
+++ b/
lib/memcached_auto.c
@@
-24,7
+24,7
@@
static memcached_return memcached_auto(memcached_st *ptr,
offset);
if (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
return MEMCACHED_WRITE_FAILURE;
offset);
if (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
return MEMCACHED_WRITE_FAILURE;
- sent_length=
write(ptr->hosts[server_key].fd, buffer, send_length
);
+ sent_length=
send(ptr->hosts[server_key].fd, buffer, send_length, 0
);
if (sent_length == -1 || sent_length != send_length)
return MEMCACHED_WRITE_FAILURE;
if (sent_length == -1 || sent_length != send_length)
return MEMCACHED_WRITE_FAILURE;