Mercurial > gnulib
changeset 30229:7e9bec4f5cc2
Remove unused variables.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 29 Sep 2008 11:36:12 +0200 |
parents | 50a53b084871 |
children | d0e994df59ca |
files | ChangeLog lib/winsock.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Sep 29 11:34:31 2008 +0200 +++ b/ChangeLog Mon Sep 29 11:36:12 2008 +0200 @@ -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.
--- a/lib/winsock.c Mon Sep 29 11:34:31 2008 +0200 +++ b/lib/winsock.c Mon Sep 29 11:36:12 2008 +0200 @@ -51,7 +51,6 @@ rpl_close (int fd) { char buf[sizeof (int)]; - int bufsize = sizeof (buf); SOCKET sock = FD_TO_SOCKET (fd); WSANETWORKEVENTS ev; @@ -107,8 +106,6 @@ 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);