]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix gcc3 compile errors (Silvan Minghetti)
authorSilvan Minghetti <bullet@users.sourceforge.net>
Wed, 10 Apr 2002 13:12:53 +0000 (13:12 +0000)
committerHarald Welte <laforge@gnumonks.org>
Wed, 10 Apr 2002 13:12:53 +0000 (13:12 +0000)
extensions/libipt_ECN.c
extensions/libipt_owner.c

index 1f97a8a13b4d974cfecae441b45d35d8b61ba3f5..fdd5c0091ad67ef7700d186612e42948b71cba29 100644 (file)
@@ -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:
        }
 }
 
index 9663122091d62c3223578fc994cb502a19c3531e..334c3369e233eb1dd402dc9dfd7911089549e8d5 100644 (file)
 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[] = {