changeset 12209:31e5813d01e1

sockets: avoid compiler warning * lib/sockets.c (gl_sockets_startup): Mark unused parameter. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Thu, 29 Oct 2009 08:47:22 -0600
parents a377ab624fcc
children 441d8820b5a5
files ChangeLog lib/sockets.c
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 29 07:29:26 2009 -0600
+++ b/ChangeLog	Thu Oct 29 08:47:22 2009 -0600
@@ -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.
 
--- a/lib/sockets.c	Thu Oct 29 07:29:26 2009 -0600
+++ b/lib/sockets.c	Thu Oct 29 08:47:22 2009 -0600
@@ -25,12 +25,12 @@
 #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 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)