Bozo Dragojevic created PROTON-559:
--------------------------------------

             Summary: typo prevents compilation of posix/io.c on OSX
                 Key: PROTON-559
                 URL: https://issues.apache.org/jira/browse/PROTON-559
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
    Affects Versions: 0.7
            Reporter: Bozo Dragojevic



diff --git a/proton-c/src/posix/io.c b/proton-c/src/posix/io.c
index c6de09e..11379ff 100644
--- a/proton-c/src/posix/io.c
+++ b/proton-c/src/posix/io.c
@@ -229,7 +229,7 @@ static inline int pn_create_socket(int af) {
 }
 #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;
 }




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to