# HG changeset patch # User Bruno Haible # Date 1222680972 -7200 # Node ID 7e9bec4f5cc23dff0a544ce58f37bd1d47ee359b # Parent 50a53b0848719db75e27a8c07903a22ea5e8dfec Remove unused variables. diff -r 50a53b084871 -r 7e9bec4f5cc2 ChangeLog --- a/ChangeLog Mon Sep 29 11:34:31 2008 +0200 +++ b/ChangeLog Mon Sep 29 11:36:12 2008 +0200 @@ -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 -r 50a53b084871 -r 7e9bec4f5cc2 lib/winsock.c --- a/lib/winsock.c Mon Sep 29 11:34:31 2008 +0200 +++ b/lib/winsock.c Mon Sep 29 11:36:12 2008 +0200 @@ -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);