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_DSCP.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'extensions/libxt_DSCP.c') diff --git a/extensions/libxt_DSCP.c b/extensions/libxt_DSCP.c index 44e03ce..38e02c7 100644 --- a/extensions/libxt_DSCP.c +++ b/extensions/libxt_DSCP.c @@ -21,11 +21,6 @@ /* This is evil, but it's my code - HW*/ #include "libipt_dscp_helper.c" - -static void init(struct xt_entry_target *t) -{ -} - static void help(void) { printf( @@ -150,7 +145,6 @@ static struct xtables_target dscp = { .size = XT_ALIGN(sizeof(struct xt_DSCP_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_DSCP_info)), .help = &help, - .init = &init, .parse = &parse, .final_check = &final_check, .print = &print, @@ -165,7 +159,6 @@ static struct xtables_target dscp6 = { .size = XT_ALIGN(sizeof(struct xt_DSCP_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_DSCP_info)), .help = &help, - .init = &init, .parse = &parse, .final_check = &final_check, .print = &print, -- cgit v1.2.3