changeset 30284:b92a6ecbf8af

Tiny tweaks.
author Bruno Haible <bruno@clisp.org>
date Mon, 06 Oct 2008 01:49:54 +0200
parents 4101d72eb484
children 434dd52e2675
files ChangeLog lib/winsock.c modules/sys_socket
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 06 01:27:51 2008 +0200
+++ b/ChangeLog	Mon Oct 06 01:49:54 2008 +0200
@@ -1,3 +1,10 @@
+2008-10-05  Bruno Haible  <bruno@clisp.org>
+
+	* lib/winsock.c (strerror): Remove unused #undef.
+	(rpl_close): Remove unused local variable.
+
+	* modules/sys_socket (Depends-on); Add errno.
+
 2008-10-05  Bruno Haible  <bruno@clisp.org>
 
 	* lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
--- a/lib/winsock.c	Mon Oct 06 01:27:51 2008 +0200
+++ b/lib/winsock.c	Mon Oct 06 01:49:54 2008 +0200
@@ -39,7 +39,6 @@
 #undef recvfrom
 #undef sendto
 #undef setsockopt
-#undef strerror
 
 # define FD_TO_SOCKET(fd)   ((SOCKET) _get_osfhandle ((fd)))
 # define SOCKET_TO_FD(fh)   (_open_osfhandle ((long) (fh), O_RDWR | O_BINARY))
@@ -50,7 +49,6 @@
 int
 rpl_close (int fd)
 {
-  char buf[sizeof (int)];
   SOCKET sock = FD_TO_SOCKET (fd);
   WSANETWORKEVENTS ev;
 
--- a/modules/sys_socket	Mon Oct 06 01:27:51 2008 +0200
+++ b/modules/sys_socket	Mon Oct 06 01:49:54 2008 +0200
@@ -9,6 +9,7 @@
 
 Depends-on:
 include_next
+errno
 
 configure.ac:
 gl_HEADER_SYS_SOCKET