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 | 64182a3092399c5cfd1ad6b2ad87f9f074354292 (patch) | |
tree | 5cdb1b84fff5cbe65110cbfe3c3e5127e9501bc3 /extensions/ebt_limit.c | |
parent | 80c82bbb27681dc261b8615b8abd3e94c95c72b4 (diff) |
add shared libraries
Diffstat (limited to 'extensions/ebt_limit.c')
-rw-r--r-- | extensions/ebt_limit.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/ebt_limit.c b/extensions/ebt_limit.c index 490686d..1c5c32b 100644 --- a/extensions/ebt_limit.c +++ b/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); } |