Mercurial > hg > octave-lyh > gnulib-hg
changeset 10593:659d4e037681
Tiny tweaks.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 06 Oct 2008 01:49:54 +0200 |
parents | 535c41e25ab1 |
children | 43282f926709 |
files | ChangeLog lib/winsock.c modules/sys_socket |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/lib/winsock.c @@ -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;