diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-10-04 16:27:07 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-10-04 16:27:07 +0000 |
commit | 0a0a8dbc129729e0028b64b2e9cc8f099f13c4dd (patch) | |
tree | 37c29ea4f70d8c72a1a9910b8c775fc8d77bd148 /extensions/libxt_standard.c | |
parent | 776aa6b83a7401f41a4c52e32437e32d27ae2e0a (diff) |
[PATCH 07/13] Unique symbols 1/6
Give symbols of libxt matches unique names (1/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 <jengelh@gmx.de>
Diffstat (limited to 'extensions/libxt_standard.c')
-rw-r--r-- | extensions/libxt_standard.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/extensions/libxt_standard.c b/extensions/libxt_standard.c index af18b3b..eef9369 100644 --- a/extensions/libxt_standard.c +++ b/extensions/libxt_standard.c @@ -8,8 +8,7 @@ #include <xtables.h> /* Function which prints out usage message. */ -static void -help(void) +static void standard_help(void) { printf( "Standard v%s options:\n" @@ -18,38 +17,34 @@ 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_target **target) +static int standard_parse(int c, char **argv, int invert, unsigned int *flags, + const void *entry, struct xt_entry_target **target) { return 0; } -static -struct xtables_target standard = { +static struct xtables_target standard_target = { .family = AF_INET, .name = "standard", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(int)), .userspacesize = XT_ALIGN(sizeof(int)), - .help = &help, - .parse = &parse, + .help = standard_help, + .parse = standard_parse, }; -static -struct xtables_target standard6 = { +static struct xtables_target standard_target6 = { .family = AF_INET6, .name = "standard", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(int)), .userspacesize = XT_ALIGN(sizeof(int)), - .help = &help, - .parse = &parse, + .help = standard_help, + .parse = standard_parse, }; void _init(void) { - xtables_register_target(&standard); - xtables_register_target(&standard6); + xtables_register_target(&standard_target); + xtables_register_target(&standard_target6); } |