poll: remove declarations of unused variables
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 15 Jan 2009 21:29:34 +0000 (22:29 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 16 Jan 2009 08:32:16 +0000 (09:32 +0100)
* lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
sockbuf and optlen.

ChangeLog
lib/poll.c

index 26e8c3e..f07972b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
+
+       poll: remove declarations of unused variables
+       * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
+       sockbuf and optlen.
+
 2009-01-15  Bruno Haible  <bruno@clisp.org>
 
        Make fflush-after-ungetc POSIX compliant on BSD systems.
index c4fdecc..bc7721c 100644 (file)
@@ -404,7 +404,6 @@ poll (pfd, nfd, timeout)
   fd_set rfds, wfds, xfds;
   BOOL poll_again;
   MSG msg;
-  char sockbuf[256];
   int rc = 0;
   nfds_t i;
 
@@ -426,7 +425,6 @@ poll (pfd, nfd, timeout)
   /* Classify socket handles and create fd sets. */
   for (i = 0; i < nfd; i++)
     {
-      size_t optlen = sizeof(sockbuf);
       pfd[i].revents = 0;
       if (pfd[i].fd < 0)
         continue;