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 08a77bf1f300e5c3c73668a463ca45674eed8497..6a39236af13ca01cb5c4dd2521b47e0e496e8a33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index 51fecf180097de139a16cac74292929f9e4b5b62..0a991994b420dbbf216c9eb70bb85295218c74e9 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);