]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables: Make ebt_load_match_extensions() static
authorPhil Sutter <phil@nwl.cc>
Wed, 22 Nov 2023 03:09:33 +0000 (04:09 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 16:59:42 +0000 (17:59 +0100)
The function is not used outside of xtables-eb.c.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-bridge.h
iptables/xtables-eb.c

index eb1b3928b6543e7db0bd74cbbe44120e320811b0..0e6a29650accae53f2f535023b3c1890b1cca2e5 100644 (file)
@@ -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,
index 3fa5c179ba4b1bf9c83ca212f8ebd591264f0649..cd45e0495ebcb79654b10c2ec1a8922400857add 100644 (file)
@@ -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");