From dd4b4a1159aa6092446fb5b61fccf80c2a9fef68 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 3 Sep 2001 12:04:34 +0000 Subject: [PATCH] restrict is a keyword git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10647 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken-common.h | 2 +- lib/roken/socket.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index 4958b0873..a897a67aa 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -302,7 +302,7 @@ void socket_set_port (struct sockaddr *sa, int port); void -socket_set_portrange (int sock, int restrict, int af); +socket_set_portrange (int sock, int restr, int af); void socket_set_debug (int sock); diff --git a/lib/roken/socket.c b/lib/roken/socket.c index be2513961..2b2f669ba 100644 --- a/lib/roken/socket.c +++ b/lib/roken/socket.c @@ -225,11 +225,11 @@ socket_set_port (struct sockaddr *sa, int port) * Set the range of ports to use when binding with port = 0. */ void -socket_set_portrange (int sock, int restrict, int af) +socket_set_portrange (int sock, int restr, int af) { #if defined(IP_PORTRANGE) if (af == AF_INET) { - int on = restrict ? IP_PORTRANGE_HIGH : IP_PORTRANGE_DEFAULT; + int on = restr ? IP_PORTRANGE_HIGH : IP_PORTRANGE_DEFAULT; if (setsockopt (sock, IPPROTO_IP, IP_PORTRANGE, &on, sizeof(on)) < 0) warn ("setsockopt IP_PORTRANGE (ignored)"); @@ -237,7 +237,7 @@ socket_set_portrange (int sock, int restrict, int af) #endif #if defined(IPV6_PORTRANGE) if (af == AF_INET6) { - int on = restrict ? IPV6_PORTRANGE_HIGH : + int on = restr ? IPV6_PORTRANGE_HIGH : IPV6_PORTRANGE_DEFAULT; if (setsockopt (sock, IPPROTO_IPV6, IPV6_PORTRANGE, &on, sizeof(on)) < 0)