]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fork-connect
authorSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 21:48:06 +0000 (14:48 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 21:48:06 +0000 (14:48 -0700)
src/preload.c

index 2b115d32ad7f3b872ebc98e48a014d45d7cc693d..76c473bf2fee4ec41981adfef14c9e3900d7771e 100644 (file)
@@ -574,7 +574,7 @@ static void fork_passive(int socket)
                goto lclose;
 
        msg = 0;
-       len = real.write(sfd, &msg, sizeof msgs);
+       len = real.write(sfd, &msg, sizeof msg);
        if (len != sizeof msg)
                goto lclose;
 
@@ -622,7 +622,6 @@ static inline enum fd_type fd_fork_get(int index, int *fd)
 int connect(int socket, const struct sockaddr *addr, socklen_t addrlen)
 {
        int fd, ret;
-       long flags;
 
        if (fd_get(socket, &fd) == fd_rsocket) {
                ret = rconnect(fd, addr, addrlen);