Mercurial > hg > octave-lyh > gnulib-hg
changeset 11019:7b796798b7bb
poll: remove declarations of unused variables
* lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
sockbuf and optlen.
author | Daniel P. Berrange <berrange@redhat.com> |
---|---|
date | Thu, 15 Jan 2009 22:29:34 +0100 |
parents | 8a3de59b56aa |
children | 4494a99c424d |
files | ChangeLog lib/poll.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/poll.c +++ b/lib/poll.c @@ -404,7 +404,6 @@ fd_set rfds, wfds, xfds; BOOL poll_again; MSG msg; - char sockbuf[256]; int rc = 0; nfds_t i; @@ -426,7 +425,6 @@ /* 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;