From 19456632e3438743b02608e1a61abf5b6c4b13a3 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Wed, 21 Jan 2004 20:39:54 +0000 Subject: add shared libraries --- userspace/ebtables2/extensions/ebt_limit.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'userspace/ebtables2/extensions/ebt_limit.c') 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); } -- cgit v1.2.3