diff options
Diffstat (limited to 'extensions/ebt_mark_m.c')
-rw-r--r-- | extensions/ebt_mark_m.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/ebt_mark_m.c b/extensions/ebt_mark_m.c index 1c18d9e..2cc371a 100644 --- a/extensions/ebt_mark_m.c +++ b/extensions/ebt_mark_m.c @@ -44,7 +44,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, if (ebt_check_inverse(optarg)) markinfo->invert = 1; if (optind > argc) - print_error("No mark specified"); + ebt_print_error("No mark specified"); markinfo->mark = strtoul(argv[optind - 1], &end, 0); markinfo->bitmask = EBT_MARK_AND; if (*end == '/') { @@ -54,7 +54,8 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, } else markinfo->mask = 0xffffffff; if ( *end != '\0' || end == argv[optind - 1]) - print_error("Bad mark value '%s'", argv[optind - 1]); + ebt_print_error("Bad mark value '%s'", + argv[optind - 1]); break; default: return 0; @@ -115,8 +116,7 @@ static struct ebt_u_match mark_match = .extra_ops = opts, }; -static void _init(void) __attribute((constructor)); -static void _init(void) +void _init(void) { ebt_register_match(&mark_match); } |