# HG changeset patch # User Bruno Haible # Date 1222680972 -7200 # Node ID 007b80185598fd9e0495a9dda2a04affadeed9bc # Parent b7e56ec1bd65082622bd419f29cd0f651ec65055 Remove unused variables. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-29 Bruno Haible + + * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables. + 2008-09-29 Bruno Haible * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket. diff --git a/lib/winsock.c b/lib/winsock.c --- a/lib/winsock.c +++ b/lib/winsock.c @@ -51,7 +51,6 @@ rpl_close (int fd) { char buf[sizeof (int)]; - int bufsize = sizeof (buf); SOCKET sock = FD_TO_SOCKET (fd); WSANETWORKEVENTS ev; @@ -107,8 +106,6 @@ int rpl_socket (int domain, int type, int protocol) { - int fd; - /* We have to use WSASocket() to create non-overlapped IO sockets. Overlapped IO sockets cannot be used with read/write. */ SOCKET fh = WSASocket (domain, type, protocol, NULL, 0, 0);