From e88a7c2c7175742b58b6aa03f2b5aba2d80330a1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 18 Feb 2011 02:00:33 +0100 Subject: extensions: remove redundant init functions The main program already zeroes the per-extension data block. Signed-off-by: Jan Engelhardt --- extensions/libip6t_dst.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'extensions/libip6t_dst.c') diff --git a/extensions/libip6t_dst.c b/extensions/libip6t_dst.c index 3ba804fe..8b656a66 100644 --- a/extensions/libip6t_dst.c +++ b/extensions/libip6t_dst.c @@ -106,16 +106,6 @@ parse_options(const char *optsstr, uint16_t *opts) return i; } -static void dst_init(struct xt_entry_match *m) -{ - struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data; - - optinfo->hdrlen = 0; - optinfo->flags = 0; - optinfo->invflags = 0; - optinfo->optsnr = 0; -} - static int dst_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) { @@ -227,7 +217,6 @@ static struct xtables_match dst_mt6_reg = { .size = XT_ALIGN(sizeof(struct ip6t_opts)), .userspacesize = XT_ALIGN(sizeof(struct ip6t_opts)), .help = dst_help, - .init = dst_init, .parse = dst_parse, .print = dst_print, .save = dst_save, -- cgit v1.2.3