diff options
author | Silvan Minghetti <bullet@users.sourceforge.net> | 2002-04-10 13:12:53 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2002-04-10 13:12:53 +0000 |
commit | 5cc4f7ef79a227e1825dd4496ca5c72a31400af8 (patch) | |
tree | 06b7e8bc75a86de61e12916b3181aff5abd96123 | |
parent | 9608bd0e4f3e45e4cba15e184441558709aa1b7c (diff) |
Fix gcc3 compile errors (Silvan Minghetti)
-rw-r--r-- | extensions/libipt_ECN.c | 3 | ||||
-rw-r--r-- | extensions/libipt_owner.c | 13 |
2 files changed, 12 insertions, 4 deletions
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 <stdio.h> #include <string.h> @@ -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[] = { |