diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-18 02:00:33 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-02-19 15:28:47 +0100 |
commit | e88a7c2c7175742b58b6aa03f2b5aba2d80330a1 (patch) | |
tree | ab295429964af7dc0096264337ed580283338d7a /extensions/libxt_TCPOPTSTRIP.c | |
parent | 12a18d6043092bd2574b2bced635259b16317e57 (diff) |
extensions: remove redundant init functions
The main program already zeroes the per-extension data block.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_TCPOPTSTRIP.c')
-rw-r--r-- | extensions/libxt_TCPOPTSTRIP.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c index 34f3562b..338a311d 100644 --- a/extensions/libxt_TCPOPTSTRIP.c +++ b/extensions/libxt_TCPOPTSTRIP.c @@ -56,14 +56,6 @@ static void tcpoptstrip_tg_help(void) printf(" %-14s strip \"%s\" option\n", w->name, w->desc); } -static void tcpoptstrip_tg_init(struct xt_entry_target *t) -{ - struct xt_tcpoptstrip_target_info *info = (void *)t->data; - - /* strictly necessary? play safe for now. */ - memset(info->strip_bmap, 0, sizeof(info->strip_bmap)); -} - static void parse_list(struct xt_tcpoptstrip_target_info *info, char *arg) { unsigned int option; @@ -184,7 +176,6 @@ static struct xtables_target tcpoptstrip_tg_reg = { .size = XT_ALIGN(sizeof(struct xt_tcpoptstrip_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_tcpoptstrip_target_info)), .help = tcpoptstrip_tg_help, - .init = tcpoptstrip_tg_init, .parse = tcpoptstrip_tg_parse, .final_check = tcpoptstrip_tg_check, .print = tcpoptstrip_tg_print, |