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_log.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'extensions/ebt_log.c') diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c index 953211e..f455f9f 100644 --- a/extensions/ebt_log.c +++ b/extensions/ebt_log.c @@ -105,7 +105,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, case LOG_PREFIX: ebt_check_option(flags, OPT_PREFIX); if (strlen(optarg) > sizeof(loginfo->prefix) - 1) - print_error("Prefix too long"); + ebt_print_error("Prefix too long"); strcpy(loginfo->prefix, optarg); break; @@ -117,7 +117,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, else loginfo->loglevel = i; if (loginfo->loglevel == 9) - print_error("Problem with the log-level"); + ebt_print_error("Problem with the log-level"); break; case LOG_IP: @@ -187,8 +187,7 @@ static struct ebt_u_watcher log_watcher = .extra_ops = opts, }; -static void _init(void) __attribute__ ((constructor)); -static void _init(void) +void _init(void) { ebt_register_watcher(&log_watcher); } -- cgit v1.2.3