sockets: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Thu, 29 Oct 2009 14:47:22 +0000 (08:47 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 30 Oct 2009 00:39:27 +0000 (18:39 -0600)
* lib/sockets.c (gl_sockets_startup): Mark unused parameter.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/sockets.c

index b0c83b8..899616f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-10-29  Eric Blake  <ebb9@byu.net>
 
+       sockets: avoid compiler warning
+       * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
+
        maint: detect usage(1) and other suspicious exits
        * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
 
index 7cb9981..cb169f8 100644 (file)
 #if WINDOWS_SOCKETS
 
 /* This includes winsock2.h on MinGW. */
-#include <sys/socket.h>
+# include <sys/socket.h>
 
-#include "close-hook.h"
+# include "close-hook.h"
 
 /* Get set_winsock_errno, FD_TO_SOCKET etc. */
-#include "w32sock.h"
+# include "w32sock.h"
 
 static int
 close_fd_maybe_socket (int fd, const struct close_hook *remaining_list)
@@ -71,10 +71,10 @@ static struct close_hook close_sockets_hook;
 
 static int initialized_sockets_version /* = 0 */;
 
-#endif
+#endif /* WINDOWS_SOCKETS */
 
 int
-gl_sockets_startup (int version)
+gl_sockets_startup (int version _UNUSED_PARAMETER_)
 {
 #if WINDOWS_SOCKETS
   if (version > initialized_sockets_version)