From: Bruno Haible Date: Mon, 29 Sep 2008 09:36:12 +0000 (+0200) Subject: Remove unused variables. X-Git-Tag: v0.1~6944 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=7828158cb398d625ba74321f6bd5eab1d16601f6;p=gnulib.git Remove unused variables. --- diff --git a/ChangeLog b/ChangeLog index 08a77bf1f..6a39236af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 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. Set LIBSOCKET instead of augmenting LIBS. * modules/sockets (Link): New section. diff --git a/lib/winsock.c b/lib/winsock.c index 51fecf180..0a991994b 100644 --- a/lib/winsock.c +++ b/lib/winsock.c @@ -51,7 +51,6 @@ int rpl_close (int fd) { char buf[sizeof (int)]; - int bufsize = sizeof (buf); SOCKET sock = FD_TO_SOCKET (fd); WSANETWORKEVENTS ev; @@ -107,8 +106,6 @@ set_winsock_errno (void) 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);