diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-06-07 12:00:24 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-06-07 12:00:24 +0200 |
commit | 11c2dd54b69e06ae3f35dea130ecba3df3859243 (patch) | |
tree | 7be48a673e07551b1d38dbbf0fef157d8753d2ff /xtables.c | |
parent | 0cb675b8f18c4b074d4c69461638820708e98100 (diff) |
xtables: remove xtables_set_revision function
Since iptables uses its own copies of the header files anyway where the
revision field is exposed, there is no reach to access name[] beyond its
size.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xtables.c')
-rw-r--r-- | xtables.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -114,14 +114,6 @@ struct option *xtables_merge_options(struct option *oldopts, return merge; } -void xtables_set_revision(char *name, u_int8_t revision) -{ - /* Old kernel sources don't have ".revision" field, - * but we stole a byte from name. */ - name[XT_FUNCTION_MAXNAMELEN - 2] = '\0'; - name[XT_FUNCTION_MAXNAMELEN - 1] = revision; -} - /** * xtables_afinfo - protocol family dependent information * @kmod: kernel module basename (e.g. "ip_tables") |