From 64182a3092399c5cfd1ad6b2ad87f9f074354292 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Wed, 21 Jan 2004 20:39:54 +0000 Subject: add shared libraries --- extensions/ebt_pkttype.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'extensions/ebt_pkttype.c') diff --git a/extensions/ebt_pkttype.c b/extensions/ebt_pkttype.c index 35bac29..f7893bb 100644 --- a/extensions/ebt_pkttype.c +++ b/extensions/ebt_pkttype.c @@ -61,7 +61,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, if (ebt_check_inverse(optarg)) ptinfo->invert = 1; if (optind > argc) - print_error("Missing pkttype class specification"); + ebt_print_error("Missing pkttype class specification"); i = strtol(argv[optind - 1], &end, 16); if (*end != '\0') { @@ -74,7 +74,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, } } if (i < 0 || i > 255) - print_error("Problem with specified pkttype class"); + ebt_print_error("Problem with specified pkttype class"); ptinfo->pkt_type = (uint8_t)i; break; @@ -129,8 +129,7 @@ static struct ebt_u_match pkttype_match = .extra_ops = opts, }; -static void _init(void) __attribute((constructor)); -static void _init(void) +void _init(void) { ebt_register_match(&pkttype_match); } -- cgit v1.2.3