diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-03-19 12:16:42 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 11:04:33 -0400 |
commit | 135367b8f6a18507af6b9a6910a14b5699415309 (patch) | |
tree | 462e8efb6f4e634421b5c01e96b02280c512eeab /net/netfilter/xt_LED.c | |
parent | b0f38452ff73da7e9e0ddc68cd5c6b93c897ca0d (diff) |
netfilter: xtables: change xt_target.checkentry return type
Restore function signatures from bool to int so that we can report
memory allocation failures or similar using -ENOMEM rather than
always having to pass -EINVAL back.
// <smpl>
@@
type bool;
identifier check, par;
@@
-bool check
+int check
(struct xt_tgchk_param *par) { ... }
// </smpl>
Minus the change it does to xt_ct_find_proto.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter/xt_LED.c')
-rw-r--r-- | net/netfilter/xt_LED.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c index f511bea9464..1a3e3dd5a77 100644 --- a/net/netfilter/xt_LED.c +++ b/net/netfilter/xt_LED.c | |||
@@ -80,7 +80,7 @@ static void led_timeout_callback(unsigned long data) | |||
80 | led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); | 80 | led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); |
81 | } | 81 | } |
82 | 82 | ||
83 | static bool led_tg_check(const struct xt_tgchk_param *par) | 83 | static int led_tg_check(const struct xt_tgchk_param *par) |
84 | { | 84 | { |
85 | struct xt_led_info *ledinfo = par->targinfo; | 85 | struct xt_led_info *ledinfo = par->targinfo; |
86 | struct xt_led_info_internal *ledinternal; | 86 | struct xt_led_info_internal *ledinternal; |