INN commit: branches/2.6/lib (network.c)

INN Commit rra at isc.org
Thu Aug 4 20:04:49 UTC 2016


    Date: Thursday, August 4, 2016 @ 13:04:49
  Author: iulius
Revision: 10047

Suppresses compiler warnings when built on systems without the relevant defines

Patch from upstream rra-c-util.

Modified:
  branches/2.6/lib/network.c

-----------+
 network.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: network.c
===================================================================
--- network.c	2016-08-04 20:04:04 UTC (rev 10046)
+++ network.c	2016-08-04 20:04:49 UTC (rev 10047)
@@ -91,7 +91,7 @@
  * on the same port immediately if the daemon dies unexpectedly).
  */
 void
-network_set_reuseaddr(socket_type fd)
+network_set_reuseaddr(socket_type fd UNUSED)
 {
 #ifdef SO_REUSEADDR
     int flag = 1;
@@ -107,7 +107,7 @@
  * consistent and easier to understand.
  */
 void
-network_set_v6only(socket_type fd)
+network_set_v6only(socket_type fd UNUSED)
 {
 #ifdef IPV6_V6ONLY
     int flag = 1;
@@ -123,7 +123,7 @@
  * IPv6 addresses that may not have been set up yet.
  */
 void
-network_set_freebind(socket_type fd)
+network_set_freebind(socket_type fd UNUSED)
 {
 #ifdef IP_FREEBIND
     int flag = 1;



More information about the inn-committers mailing list