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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49577adb63848cfb501199419a1cf838ff139918;p=pspp lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw. --- diff --git a/ChangeLog b/ChangeLog index bd0a10aaa9..b6c2893768 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/lib/sys_socket.in.h b/lib/sys_socket.in.h index fcb4a22693..91a6b33a5c 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;