From a1ac18c4d5b4f8f4f279efb2ae12b46258f22282 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 28 Jun 2005 17:17:12 +0000 Subject: 2005-06-28 Paul Jakma * (global) Extern and static'ification, with related fixups of declarations, ensuring files include their own headers, etc. if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in list loop --- zebra/ipforward_solaris.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'zebra/ipforward_solaris.c') diff --git a/zebra/ipforward_solaris.c b/zebra/ipforward_solaris.c index 3ad2c400..4aa1b797 100644 --- a/zebra/ipforward_solaris.c +++ b/zebra/ipforward_solaris.c @@ -25,6 +25,7 @@ #include "prefix.h" #include "privs.h" +#include "zebra/ipforward.h" /* ** Solaris should define IP_DEV_NAME in , but we'll save @@ -126,37 +127,37 @@ solaris_nd_get(const char* parameter) { return solaris_nd(ND_GET, parameter, 0); } int -ipforward() +ipforward(void) { return solaris_nd_get("ip_forwarding"); } int -ipforward_on () +ipforward_on (void) { (void) solaris_nd_set("ip_forwarding", 1); return ipforward(); } int -ipforward_off () +ipforward_off (void) { (void) solaris_nd_set("ip_forwarding", 0); return ipforward(); } #ifdef HAVE_IPV6 -int ipforward_ipv6() +int ipforward_ipv6(void) { return solaris_nd_get("ip6_forwarding"); } int -ipforward_ipv6_on () +ipforward_ipv6_on (void) { (void) solaris_nd_set("ip6_forwarding", 1); return ipforward_ipv6(); } int -ipforward_ipv6_off () +ipforward_ipv6_off (void) { (void) solaris_nd_set("ip6_forwarding", 0); return ipforward_ipv6(); -- cgit v1.2.1