From 39e512ce0d96670eded22483a94bc4dcb34b4ae0 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Thu, 4 Oct 2007 16:24:00 +0000 Subject: [PATCH 02/14] Delete empty ->init() functions Deletes empty ->init() functions. ip[6]tables already checks for .init being NULL or not. Signed-off-by: Jan Engelhardt --- extensions/libxt_MARK.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'extensions/libxt_MARK.c') diff --git a/extensions/libxt_MARK.c b/extensions/libxt_MARK.c index 423e0f2..ddfa323 100644 --- a/extensions/libxt_MARK.c +++ b/extensions/libxt_MARK.c @@ -28,12 +28,6 @@ static const struct option opts[] = { { } }; -/* Initialize the target. */ -static void -init(struct xt_entry_target *t) -{ -} - /* Function which parses command options; returns true if it ate an option */ static int @@ -192,7 +186,6 @@ static struct xtables_target mark_v0 = { .size = XT_ALIGN(sizeof(struct xt_mark_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info)), .help = &help, - .init = &init, .parse = &parse_v0, .final_check = &final_check, .print = &print_v0, @@ -208,7 +201,6 @@ static struct xtables_target mark_v1 = { .size = XT_ALIGN(sizeof(struct xt_mark_target_info_v1)), .userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info_v1)), .help = &help, - .init = &init, .parse = &parse_v1, .final_check = &final_check, .print = &print_v1, @@ -224,7 +216,6 @@ static struct xtables_target mark6_v0 = { .size = XT_ALIGN(sizeof(struct xt_mark_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info)), .help = &help, - .init = &init, .parse = &parse_v0, .final_check = &final_check, .print = &print_v0, -- cgit v1.2.3