diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2004-01-21 20:39:54 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2004-01-21 20:39:54 +0000 |
commit | 19456632e3438743b02608e1a61abf5b6c4b13a3 (patch) | |
tree | 8a26442e4ef21e61370f17d9032bec6ca526c937 /userspace/ebtables2/extensions/ebt_log.c | |
parent | 22bcbb5aaaadb6605abfe02c5a6f052fe64eae27 (diff) |
add shared libraries
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_log.c')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_log.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/userspace/ebtables2/extensions/ebt_log.c b/userspace/ebtables2/extensions/ebt_log.c index 953211e..f455f9f 100644 --- a/userspace/ebtables2/extensions/ebt_log.c +++ b/userspace/ebtables2/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); } |