diff src/lib/network.c @ 34:a3d77e73f99b HEAD

fixed compile warnings with some systems
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Aug 2002 23:49:05 +0300
parents 3b1985cbc908
children 83ae914a583a
line wrap: on
line diff
--- a/src/lib/network.c	Mon Aug 26 23:15:09 2002 +0300
+++ b/src/lib/network.c	Mon Aug 26 23:49:05 2002 +0300
@@ -216,7 +216,7 @@
 }
 
 /* Set socket blocking/nonblocking */
-void net_set_nonblock(int fd, int nonblock)
+void net_set_nonblock(int fd __attr_unused__, int nonblock __attr_unused__)
 {
 #ifdef HAVE_FCNTL
 	if (fcntl(fd, F_SETFL, nonblock ? O_NONBLOCK : 0) < 0)
@@ -224,7 +224,7 @@
 #endif
 }
 
-void net_set_cork(int fd, int cork)
+void net_set_cork(int fd __attr_unused__, int cork __attr_unused__)
 {
 #ifdef TCP_CORK
 	setsockopt(fd, SOL_TCP, TCP_CORK, &cork, sizeof(cork));