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_CLASSIFY.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'extensions/libxt_CLASSIFY.c') diff --git a/extensions/libxt_CLASSIFY.c b/extensions/libxt_CLASSIFY.c index 08ad8b2..605c47e 100644 --- a/extensions/libxt_CLASSIFY.c +++ b/extensions/libxt_CLASSIFY.c @@ -26,12 +26,6 @@ static const struct option opts[] = { { } }; -/* Initialize the target. */ -static void -init(struct xt_entry_target *t) -{ -} - int string_to_priority(const char *s, unsigned int *p) { unsigned int i, j; @@ -115,7 +109,6 @@ static struct xtables_target classify = { .size = XT_ALIGN(sizeof(struct xt_classify_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_classify_target_info)), .help = &help, - .init = &init, .parse = &parse, .final_check = &final_check, .print = &print, @@ -130,7 +123,6 @@ static struct xtables_target classify6 = { .size = XT_ALIGN(sizeof(struct xt_classify_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_classify_target_info)), .help = &help, - .init = &init, .parse = &parse, .final_check = &final_check, .print = &print, -- cgit v1.2.3