summaryrefslogtreecommitdiffstats
path: root/iptables/iptables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-25 14:35:51 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-30 10:01:06 +0100
commit56fe510492bc2b95d84f7ab81a994b459076b7d1 (patch)
tree08a6b4ecc0d7b967d5fad04f68f0f52ea7444426 /iptables/iptables.c
parent6fee37cfe6bda343a0dd2497e560f83147a3f3e5 (diff)
Replace TRUE/FALSE with true/false
And drop the conditional defines. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/iptables.c')
-rw-r--r--iptables/iptables.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/iptables/iptables.c b/iptables/iptables.c
index 255b61b1..88ef6cf6 100644
--- a/iptables/iptables.c
+++ b/iptables/iptables.c
@@ -41,14 +41,6 @@
#include <fcntl.h>
#include "xshared.h"
-#ifndef TRUE
-#define TRUE 1
-#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-
#define OPT_FRAGMENT 0x00800U
#define NUMBER_OF_OPT ARRAY_SIZE(optflags)
static const char optflags[]
@@ -1518,7 +1510,7 @@ int do_command4(int argc, char *argv[], char **table,
xtables_error(PARAMETER_PROBLEM,
"multiple consecutive ! not"
" allowed");
- cs.invert = TRUE;
+ cs.invert = true;
optarg[0] = '\0';
continue;
}
@@ -1531,7 +1523,7 @@ int do_command4(int argc, char *argv[], char **table,
continue;
break;
}
- cs.invert = FALSE;
+ cs.invert = false;
}
if (!wait && wait_interval_set)