Remove unused variables.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Sep 2008 09:36:12 +0000 (11:36 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Sep 2008 09:36:12 +0000 (11:36 +0200)
ChangeLog
lib/winsock.c

index 08a77bf..6a39236 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-09-29  Bruno Haible  <bruno@clisp.org>
 
+       * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
+
+2008-09-29  Bruno Haible  <bruno@clisp.org>
+
        * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
        Set LIBSOCKET instead of augmenting LIBS.
        * modules/sockets (Link): New section.
index 51fecf1..0a99199 100644 (file)
@@ -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);