[iptables PATCH 10/10] xshared: Make load_proto() static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The last outside users vanished ten years ago.

Fixes: 449cdd6bcc8d1 ("src: combine default_command functions")
Signed-off-by: Phil Sutter <phil@xxxxxx>
---
 iptables/xshared.c | 2 +-
 iptables/xshared.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/iptables/xshared.c b/iptables/xshared.c
index 37ea71068b69c..a1ca2b0fd7e3e 100644
--- a/iptables/xshared.c
+++ b/iptables/xshared.c
@@ -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;
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 757940090dd69..060c62ef0b5ca 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -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 *);
-- 
2.33.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux