[iptables PATCH 09/12] ebtables: Make ebt_load_match_extensions() static

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

 



The function is not used outside of xtables-eb.c.

Signed-off-by: Phil Sutter <phil@xxxxxx>
---
 iptables/nft-bridge.h | 1 -
 iptables/xtables-eb.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/iptables/nft-bridge.h b/iptables/nft-bridge.h
index eb1b3928b6543..0e6a29650acca 100644
--- a/iptables/nft-bridge.h
+++ b/iptables/nft-bridge.h
@@ -115,7 +115,6 @@ static inline const char *ebt_target_name(unsigned int verdict)
 })								\
 
 void ebt_cs_clean(struct iptables_command_state *cs);
-void ebt_load_match_extensions(void);
 void ebt_add_match(struct xtables_match *m,
 			  struct iptables_command_state *cs);
 void ebt_add_watcher(struct xtables_target *watcher,
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c
index 3fa5c179ba4b1..cd45e0495ebcb 100644
--- a/iptables/xtables-eb.c
+++ b/iptables/xtables-eb.c
@@ -504,7 +504,7 @@ static void ebt_load_watcher(const char *name)
 		xtables_error(OTHER_PROBLEM, "Can't alloc memory");
 }
 
-void ebt_load_match_extensions(void)
+static void ebt_load_match_extensions(void)
 {
 	opts = ebt_original_options;
 	ebt_load_match("802_3");
-- 
2.41.0




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

  Powered by Linux