]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Delete empty ->print() and ->save() functions
authorJan Engelhardt <jengelh@medozas.de>
Thu, 4 Oct 2007 16:25:23 +0000 (16:25 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 4 Oct 2007 16:25:23 +0000 (16:25 +0000)
Deletes empty ->print() and ->save() functions.
ip[6]tables prints the trivial thing automatically.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
extensions/libip6t_eui64.c
extensions/libipt_unclean.c
extensions/libxt_TRACE.c
extensions/libxt_standard.c

index f6830d4b8277129f3ce97e71c31cfed7e05f497a..28f8179cfc1728df1a650182c21babbf0fe5d72e 100644 (file)
@@ -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)
index 2916bc3b888d17e250460a3c9cf6114a34cc0b7a..6b5bcbfca6f4b4193f97b63d298cedf2e1b644dc 100644 (file)
@@ -31,8 +31,6 @@ struct iptables_match unclean = {
        .userspacesize  = IPT_ALIGN(0),
        .help           = &help,
        .parse          = &parse,
-       .print          = NULL,
-       .save           = NULL,
 };
 
 void _init(void)
index 48015e5e636413e5b2dd25b4d271af789cd625ab..936103657f31fd11e28fcc47724a0af312a42aff 100644 (file)
@@ -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)
index 078f9ca5485509d20dcea3b2374c566c5486d751..af18b3b13f4a08e6e6b6b6771fa91e93928faf08 100644 (file)
@@ -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)