Mercurial > hg > octave-kai > gnulib-hg
changeset 10538:007b80185598
Remove unused variables.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 29 Sep 2008 11:36:12 +0200 |
parents | b7e56ec1bd65 |
children | affb655993ea |
files | ChangeLog lib/winsock.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/winsock.c +++ b/lib/winsock.c @@ -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);