You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2014/04/10 02:39:13 UTC

svn commit: r1586183 - /qpid/proton/trunk/proton-c/src/posix/io.c

Author: rhs
Date: Thu Apr 10 00:39:13 2014
New Revision: 1586183

URL: http://svn.apache.org/r1586183
Log:
PROTON-599: applied patch to fix typo on systems with SO_NOSIGPIPE

Modified:
    qpid/proton/trunk/proton-c/src/posix/io.c

Modified: qpid/proton/trunk/proton-c/src/posix/io.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/posix/io.c?rev=1586183&r1=1586182&r2=1586183&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/posix/io.c (original)
+++ qpid/proton/trunk/proton-c/src/posix/io.c Thu Apr 10 00:39:13 2014
@@ -229,7 +229,7 @@ static inline int pn_create_socket(int a
 }
 #elif defined(SO_NOSIGPIPE)
 ssize_t pn_send(pn_io_t *io, pn_socket_t socket, const void *buf, size_t size) {
-  ssize_t count = return send(socket, buf, len, 0);
+  ssize_t count = send(socket, buf, size, 0);
   io->wouldblock = count < 0 && (errno == EAGAIN || errno == EWOULDBLOCK);
   return count;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org