From 03ba7406f5e071b56231063870af2875cc7d64be Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 15 Jan 2009 22:29:34 +0100 Subject: [PATCH] poll: remove declarations of unused variables * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused sockbuf and optlen. --- ChangeLog | 6 ++++++ lib/poll.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26e8c3e8b3..f07972be29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-16 Daniel P. Berrange + + poll: remove declarations of unused variables + * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused + sockbuf and optlen. + 2009-01-15 Bruno Haible Make fflush-after-ungetc POSIX compliant on BSD systems. diff --git a/lib/poll.c b/lib/poll.c index c4fdeccf6c..bc7721cd0b 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -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; -- 2.30.2