Permalink
Browse files

minor fixes git skipped on last commit

  • Loading branch information...
1 parent bb83539 commit a03e16b35cc8d5b6555eb71d5cc0df9c4b7767e6 @ncm committed Apr 1, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −3 README
  2. +1 −1 socketpair.c
View
6 README
@@ -1,4 +1,4 @@
Windows XP doesn't provide POSIX socketpair(2). Typical workarounds
-based on pipes can't be used with select(2). This socketpair is not
-named "socketpair" because it offers an extra argument needed for use
-in Windows code, but the option is ignored on unixy systems.
+based on pipes can't be used with win32 select(2). This socketpair is
+named a little differently because it offers an extra argument needed
+for use in Windows code. The extra argument is ignored on unixy systems.
View
@@ -79,7 +79,7 @@ int dumb_socketpair(SOCKET socks[2], int make_overlapped)
break;
if (bind(listener, &a.addr, sizeof(a.inaddr)) == SOCKET_ERROR)
break;
- memset(a, 0, sizeof(a));
+ memset(&a, 0, sizeof(a));
if (getsockname(listener, &a.addr, &addrlen) == SOCKET_ERROR &&
WSAGetLastError() != WSAEINVAL)
break;

0 comments on commit a03e16b

Please sign in to comment.