diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2004-01-21 20:39:54 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2004-01-21 20:39:54 +0000 |
commit | 19456632e3438743b02608e1a61abf5b6c4b13a3 (patch) | |
tree | 8a26442e4ef21e61370f17d9032bec6ca526c937 /userspace/ebtables2/extensions/ebt_limit.c | |
parent | 22bcbb5aaaadb6605abfe02c5a6f052fe64eae27 (diff) |
add shared libraries
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_limit.c')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_limit.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/userspace/ebtables2/extensions/ebt_limit.c b/userspace/ebtables2/extensions/ebt_limit.c index 490686d..1c5c32b 100644 --- a/userspace/ebtables2/extensions/ebt_limit.c +++ b/userspace/ebtables2/extensions/ebt_limit.c @@ -122,18 +122,18 @@ static int parse(int c, char **argv, int argc, case ARG_LIMIT: ebt_check_option(flags, FLAG_LIMIT); if (ebt_check_inverse(optarg)) - print_error("Unexpected `!' after --limit"); + ebt_print_error("Unexpected `!' after --limit"); if (!parse_rate(optarg, &r->avg)) - print_error("bad rate `%s'", optarg); + ebt_print_error("bad rate `%s'", optarg); break; case ARG_LIMIT_BURST: ebt_check_option(flags, FLAG_LIMIT_BURST); if (ebt_check_inverse(optarg)) - print_error("Unexpected `!' after --limit-burst"); + ebt_print_error("Unexpected `!' after --limit-burst"); if (string_to_number(optarg, 0, 10000, &num) == -1) - print_error("bad --limit-burst `%s'", optarg); + ebt_print_error("bad --limit-burst `%s'", optarg); r->burst = num; break; @@ -214,8 +214,7 @@ static struct ebt_u_match limit_match = .extra_ops opts, }; -static void _init(void) __attribute((constructor)); -static void _init(void) +void _init(void) { ebt_register_match(&limit_match); } |