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_multiport.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'extensions/libxt_multiport.c') diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c index d47c372..9abd13e 100644 --- a/extensions/libxt_multiport.c +++ b/extensions/libxt_multiport.c @@ -133,12 +133,6 @@ parse_multi_ports_v1(const char *portstring, free(buffer); } -/* Initialize the match. */ -static void -init(struct xt_entry_match *m) -{ -} - static const char * check_proto(u_int16_t pnum, u_int8_t invflags) { @@ -523,7 +517,6 @@ static struct xtables_match multiport = { .size = XT_ALIGN(sizeof(struct xt_multiport)), .userspacesize = XT_ALIGN(sizeof(struct xt_multiport)), .help = &help, - .init = &init, .parse = &parse, .final_check = &final_check, .print = &print, @@ -539,7 +532,6 @@ static struct xtables_match multiport6 = { .size = XT_ALIGN(sizeof(struct xt_multiport)), .userspacesize = XT_ALIGN(sizeof(struct xt_multiport)), .help = &help, - .init = &init, .parse = &parse6, .final_check = &final_check, .print = &print6, @@ -555,7 +547,6 @@ static struct xtables_match multiport_v1 = { .size = XT_ALIGN(sizeof(struct xt_multiport_v1)), .userspacesize = XT_ALIGN(sizeof(struct xt_multiport_v1)), .help = &help_v1, - .init = &init, .parse = &parse_v1, .final_check = &final_check, .print = &print_v1, @@ -571,7 +562,6 @@ static struct xtables_match multiport6_v1 = { .size = XT_ALIGN(sizeof(struct xt_multiport_v1)), .userspacesize = XT_ALIGN(sizeof(struct xt_multiport_v1)), .help = &help_v1, - .init = &init, .parse = &parse6_v1, .final_check = &final_check, .print = &print6_v1, -- cgit v1.2.3