diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-25 14:35:51 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-30 10:01:06 +0100 |
commit | 56fe510492bc2b95d84f7ab81a994b459076b7d1 (patch) | |
tree | 08a6b4ecc0d7b967d5fad04f68f0f52ea7444426 /iptables/xtables.c | |
parent | 6fee37cfe6bda343a0dd2497e560f83147a3f3e5 (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/xtables.c')
-rw-r--r-- | iptables/xtables.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index 805bd801..8f9dc628 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -43,13 +43,6 @@ #include "nft-shared.h" #include "nft.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[] @@ -952,7 +945,7 @@ void do_parse(struct nft_handle *h, int argc, char *argv[], xtables_error(PARAMETER_PROBLEM, "multiple consecutive ! not" " allowed"); - cs->invert = TRUE; + cs->invert = true; optarg[0] = '\0'; continue; } @@ -965,7 +958,7 @@ void do_parse(struct nft_handle *h, int argc, char *argv[], continue; break; } - cs->invert = FALSE; + cs->invert = false; } if (strcmp(p->table, "nat") == 0 && |