summaryrefslogtreecommitdiffstats
path: root/extensions/ebt_mark.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_mark.c
parent80c82bbb27681dc261b8615b8abd3e94c95c72b4 (diff)
add shared libraries
Diffstat (limited to 'extensions/ebt_mark.c')
-rw-r--r--extensions/ebt_mark.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/ebt_mark.c b/extensions/ebt_mark.c
index c40b9fd..bf23a03 100644
--- a/extensions/ebt_mark.c
+++ b/extensions/ebt_mark.c
@@ -48,13 +48,13 @@ static int parse(int c, char **argv, int argc,
case MARK_TARGET:
ebt_check_option(flags, OPT_MARK_TARGET);
if (FILL_TARGET(optarg, markinfo->target))
- print_error("Illegal --mark-target target");
+ ebt_print_error("Illegal --mark-target target");
break;
case MARK_SETMARK:
ebt_check_option(flags, OPT_MARK_SETMARK);
markinfo->mark = strtoul(optarg, &end, 0);
if (*end != '\0' || end == optarg)
- print_error("Bad MARK value '%s'", optarg);
+ ebt_print_error("Bad MARK value '%s'", optarg);
mark_supplied = 1;
break;
default:
@@ -71,9 +71,10 @@ static void final_check(const struct ebt_u_entry *entry,
(struct ebt_mark_t_info *)target->data;
if (time == 0 && mark_supplied == 0)
- print_error("No mark value supplied");
+ ebt_print_error("No mark value supplied");
if (BASE_CHAIN && markinfo->target == EBT_RETURN)
- print_error("--mark-target RETURN not allowed on base chain");
+ ebt_print_error("--mark-target RETURN not allowed on base "
+ "chain");
}
static void print(const struct ebt_u_entry *entry,
@@ -113,8 +114,7 @@ static struct ebt_u_target mark_target =
.extra_ops = opts,
};
-static void _init(void) __attribute__ ((constructor));
-static void _init(void)
+void _init(void)
{
ebt_register_target(&mark_target);
}