summaryrefslogtreecommitdiffstats
path: root/xtables.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-06-07 12:00:24 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-06-07 12:00:24 +0200
commit11c2dd54b69e06ae3f35dea130ecba3df3859243 (patch)
tree7be48a673e07551b1d38dbbf0fef157d8753d2ff /xtables.c
parent0cb675b8f18c4b074d4c69461638820708e98100 (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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xtables.c b/xtables.c
index b4c4f6b3..ed082f3f 100644
--- a/xtables.c
+++ b/xtables.c
@@ -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")