diff options
author | Jan Engelhardt <jengelh@gmx.de> | 2007-07-08 01:15:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:16:56 -0400 |
commit | cff533ac12494fa002e2c46acc94d670e5f636a2 (patch) | |
tree | ab159436fa3f5c282455afafcf136fd03fa8225a /net/ipv4/netfilter/ipt_recent.c | |
parent | 7bfe24611671ec76b44281e582b38535e21f01a9 (diff) |
[NETFILTER]: x_tables: switch hotdrop to bool
Switch the "hotdrop" variables to boolean
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ipt_recent.c')
-rw-r--r-- | net/ipv4/netfilter/ipt_recent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c index 15a9e8bbb7c..81f1a017f31 100644 --- a/net/ipv4/netfilter/ipt_recent.c +++ b/net/ipv4/netfilter/ipt_recent.c | |||
@@ -173,7 +173,7 @@ static int | |||
173 | ipt_recent_match(const struct sk_buff *skb, | 173 | ipt_recent_match(const struct sk_buff *skb, |
174 | const struct net_device *in, const struct net_device *out, | 174 | const struct net_device *in, const struct net_device *out, |
175 | const struct xt_match *match, const void *matchinfo, | 175 | const struct xt_match *match, const void *matchinfo, |
176 | int offset, unsigned int protoff, int *hotdrop) | 176 | int offset, unsigned int protoff, bool *hotdrop) |
177 | { | 177 | { |
178 | const struct ipt_recent_info *info = matchinfo; | 178 | const struct ipt_recent_info *info = matchinfo; |
179 | struct recent_table *t; | 179 | struct recent_table *t; |
@@ -201,7 +201,7 @@ ipt_recent_match(const struct sk_buff *skb, | |||
201 | goto out; | 201 | goto out; |
202 | e = recent_entry_init(t, addr, ttl); | 202 | e = recent_entry_init(t, addr, ttl); |
203 | if (e == NULL) | 203 | if (e == NULL) |
204 | *hotdrop = 1; | 204 | *hotdrop = true; |
205 | ret ^= 1; | 205 | ret ^= 1; |
206 | goto out; | 206 | goto out; |
207 | } | 207 | } |