summaryrefslogtreecommitdiffstats
path: root/extensions/ebt_log.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-01-21 20:39:54 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-01-21 20:39:54 +0000
commit64182a3092399c5cfd1ad6b2ad87f9f074354292 (patch)
tree5cdb1b84fff5cbe65110cbfe3c3e5127e9501bc3 /extensions/ebt_log.c
parent80c82bbb27681dc261b8615b8abd3e94c95c72b4 (diff)
add shared libraries
Diffstat (limited to 'extensions/ebt_log.c')
-rw-r--r--extensions/ebt_log.c7
1 files changed, 3 insertions, 4 deletions
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);
}