From 7828158cb398d625ba74321f6bd5eab1d16601f6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 29 Sep 2008 11:36:12 +0200 Subject: [PATCH] Remove unused variables. --- ChangeLog | 4 ++++ lib/winsock.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) 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); -- 2.30.2