From 49577adb63848cfb501199419a1cf838ff139918 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 22 Oct 2008 18:06:15 +0200 Subject: [PATCH] lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw. --- ChangeLog | 4 ++++ lib/sys_socket.in.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.11.0