]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xshared: Make load_proto() static
authorPhil Sutter <phil@nwl.cc>
Sat, 6 Nov 2021 00:32:47 +0000 (01:32 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 23 Nov 2021 14:01:23 +0000 (15:01 +0100)
The last outside users vanished ten years ago.

Fixes: 449cdd6bcc8d1 ("src: combine default_command functions")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c
iptables/xshared.h

index 37ea71068b69c92d1daeadb033d6321984f96109..a1ca2b0fd7e3ef6e507d6aa7c1b755f4afd4228b 100644 (file)
@@ -107,7 +107,7 @@ static bool should_load_proto(struct iptables_command_state *cs)
        return !cs->proto_used;
 }
 
-struct xtables_match *load_proto(struct iptables_command_state *cs)
+static struct xtables_match *load_proto(struct iptables_command_state *cs)
 {
        if (!should_load_proto(cs))
                return NULL;
index 757940090dd69875e3e69c3290d1dd7a24efe1cf..060c62ef0b5caa8b2a684d5a06f5610e2dce297c 100644 (file)
@@ -166,7 +166,6 @@ extern void print_extension_helps(const struct xtables_target *,
        const struct xtables_rule_match *);
 extern int command_default(struct iptables_command_state *,
        struct xtables_globals *, bool invert);
-extern struct xtables_match *load_proto(struct iptables_command_state *);
 extern int subcmd_main(int, char **, const struct subcommand *);
 extern void xs_init_target(struct xtables_target *);
 extern void xs_init_match(struct xtables_match *);