From: Simon Josefsson Date: Wed, 22 Oct 2008 16:06:15 +0000 (+0200) Subject: lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw. X-Git-Tag: v0.1~6784 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=49577adb63848cfb501199419a1cf838ff139918;p=gnulib.git lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw. --- diff --git a/ChangeLog b/ChangeLog index bd0a10aaa..b6c289376 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-10-22 Simon Josefsson + * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw. + +2008-10-22 Simon Josefsson + * m4/getgroups.m4: Avoid invoking test with wrong parameters. 2008-10-22 Eric Blake diff --git a/lib/sys_socket.in.h b/lib/sys_socket.in.h index fcb4a2269..91a6b33a5 100644 --- a/lib/sys_socket.in.h +++ b/lib/sys_socket.in.h @@ -120,9 +120,9 @@ extern "C" { /* Re-define FD_ISSET to avoid a WSA call while we are not using network sockets. */ static inline int -rpl_fd_isset (int fd, fd_set * set) +rpl_fd_isset (SOCKET fd, fd_set * set) { - int i; + u_int i; if (set == NULL) return 0;