summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2007-10-04 16:25:23 +0000
committerPatrick McHardy <kaber@trash.net>2007-10-04 16:25:23 +0000
commit278654a9aa89311eb624dc5b79b5b37d99248129 (patch)
tree990ca3f9182b8fce445eda52c4f55da1267ed702
parent830132ac9c0d270bf9dcfe85c2464e3fe8c73fb9 (diff)
Delete empty ->print() and ->save() functions
Deletes empty ->print() and ->save() functions. ip[6]tables prints the trivial thing automatically. Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
-rw-r--r--extensions/libip6t_eui64.c17
-rw-r--r--extensions/libipt_unclean.c2
-rw-r--r--extensions/libxt_TRACE.c4
-rw-r--r--extensions/libxt_standard.c10
4 files changed, 0 insertions, 33 deletions
diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c
index f6830d4b..28f8179c 100644
--- a/extensions/libip6t_eui64.c
+++ b/extensions/libip6t_eui64.c
@@ -32,21 +32,6 @@ parse(int c, char **argv, int invert, unsigned int *flags,
return 0;
}
-/* Prints out the matchinfo. */
-static void
-print(const void *ip,
- const struct xt_entry_match *match,
- int numeric)
-{
- printf("eui64 ");
-}
-
-/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const void *ip, const struct xt_entry_match *match)
-{
-
-}
-
static struct ip6tables_match eui64 = {
.name = "eui64",
.version = IPTABLES_VERSION,
@@ -54,8 +39,6 @@ static struct ip6tables_match eui64 = {
.userspacesize = IP6T_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = &print,
- .save = &save,
};
void _init(void)
diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c
index 2916bc3b..6b5bcbfc 100644
--- a/extensions/libipt_unclean.c
+++ b/extensions/libipt_unclean.c
@@ -31,8 +31,6 @@ struct iptables_match unclean = {
.userspacesize = IPT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = NULL,
};
void _init(void)
diff --git a/extensions/libxt_TRACE.c b/extensions/libxt_TRACE.c
index 48015e5e..93610365 100644
--- a/extensions/libxt_TRACE.c
+++ b/extensions/libxt_TRACE.c
@@ -34,8 +34,6 @@ static struct xtables_target trace = {
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL, /* print */
- .save = NULL, /* save */
};
static struct xtables_target trace6 = {
@@ -46,8 +44,6 @@ static struct xtables_target trace6 = {
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL, /* print */
- .save = NULL, /* save */
};
void _init(void)
diff --git a/extensions/libxt_standard.c b/extensions/libxt_standard.c
index 078f9ca5..af18b3b1 100644
--- a/extensions/libxt_standard.c
+++ b/extensions/libxt_standard.c
@@ -26,12 +26,6 @@ parse(int c, char **argv, int invert, unsigned int *flags,
return 0;
}
-/* Saves the targinfo in parsable form to stdout. */
-static void
-save(const void *ip, const struct xt_entry_target *target)
-{
-}
-
static
struct xtables_target standard = {
.family = AF_INET,
@@ -41,8 +35,6 @@ struct xtables_target standard = {
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = &save,
};
static
@@ -54,8 +46,6 @@ struct xtables_target standard6 = {
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = &save,
};
void _init(void)