From: Bruno Haible Date: Mon, 29 Sep 2008 09:36:12 +0000 (+0200) Subject: Remove unused variables. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7828158cb398d625ba74321f6bd5eab1d16601f6;p=pspp Remove unused variables. --- diff --git a/ChangeLog b/ChangeLog index 08a77bf1f3..6a39236af1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-29 Bruno Haible + + * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables. + 2008-09-29 Bruno Haible * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket. diff --git a/lib/winsock.c b/lib/winsock.c index 51fecf1800..0a991994b4 100644 --- a/lib/winsock.c +++ b/lib/winsock.c @@ -51,7 +51,6 @@ int rpl_close (int fd) { char buf[sizeof (int)]; - int bufsize = sizeof (buf); SOCKET sock = FD_TO_SOCKET (fd); WSANETWORKEVENTS ev; @@ -107,8 +106,6 @@ set_winsock_errno (void) 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);