From 5cc4f7ef79a227e1825dd4496ca5c72a31400af8 Mon Sep 17 00:00:00 2001 From: Silvan Minghetti Date: Wed, 10 Apr 2002 13:12:53 +0000 Subject: Fix gcc3 compile errors (Silvan Minghetti) --- extensions/libipt_ECN.c | 3 +-- extensions/libipt_owner.c | 13 +++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'extensions') diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c index 1f97a8a1..fdd5c009 100644 --- a/extensions/libipt_ECN.c +++ b/extensions/libipt_ECN.c @@ -6,7 +6,7 @@ * * libipt_ECN.c borrowed heavily from libipt_DSCP.c * - * $Id: libipt_ECN.c,v 1.1 2002/02/17 21:32:32 laforge Exp $ + * $Id: libipt_ECN.c,v 1.2 2002/02/18 21:32:56 laforge Exp $ */ #include #include @@ -99,7 +99,6 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) case IPT_ECN_OP_REMOVE: printf("--ecn-remove "); break; - default: } } diff --git a/extensions/libipt_owner.c b/extensions/libipt_owner.c index 96631220..334c3369 100644 --- a/extensions/libipt_owner.c +++ b/extensions/libipt_owner.c @@ -14,17 +14,26 @@ static void help(void) { +#ifdef IPT_OWNER_COMM printf( "OWNER match v%s options:\n" "[!] --uid-owner userid Match local uid\n" "[!] --gid-owner groupid Match local gid\n" "[!] --pid-owner processid Match local pid\n" "[!] --sid-owner sessionid Match local sid\n" -#ifdef IPT_OWNER_COMM "[!] --cmd-owner name Match local command name\n" -#endif "\n", NETFILTER_VERSION); +#else + printf( +"OWNER match v%s options:\n" +"[!] --uid-owner userid Match local uid\n" +"[!] --gid-owner groupid Match local gid\n" +"[!] --pid-owner processid Match local pid\n" +"[!] --sid-owner sessionid Match local sid\n" +"\n", +NETFILTER_VERSION); +#endif /* IPT_OWNER_COMM */ } static struct option opts[] = { -- cgit v1.2.3