From 59d164019340d110d302634e429320577f0db7be Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 4 Oct 2007 16:28:39 +0000 Subject: Unique names 3/6 Give symbols of libxt matches unique names (2/3). Adds unique prefixes to all functions (most of them - especially the hook functions) so that debugging programs can unambiguously map a symbol to an address. Also unifies the names of the xtables_match/xtables_target structs, (based upon libxt_connmark.c/libip6t_*.c). Signed-off-by: Jan Engelhardt --- extensions/libipt_unclean.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'extensions/libipt_unclean.c') diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index 6b5bcbfc..648d0980 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -5,8 +5,7 @@ #include /* Function which prints out usage message. */ -static void -help(void) +static void unclean_help(void) { printf( "unclean v%s takes no options\n" @@ -15,25 +14,22 @@ help(void) /* Function which parses command options; returns true if it ate an option */ -static int -parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, - struct xt_entry_match **match) +static int unclean_parse(int c, char **argv, int invert, unsigned int *flags, + const void *entry, struct xt_entry_match **match) { return 0; } -static -struct iptables_match unclean = { +static struct iptables_match unclean_match = { .name = "unclean", .version = IPTABLES_VERSION, .size = IPT_ALIGN(0), .userspacesize = IPT_ALIGN(0), - .help = &help, - .parse = &parse, + .help = unclean_help, + .parse = unclean_parse, }; void _init(void) { - register_match(&unclean); + register_match(&unclean_match); } -- cgit v1.2.3