]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xshared: Make save_iface() static
authorPhil Sutter <phil@nwl.cc>
Fri, 26 Jul 2024 18:50:15 +0000 (20:50 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 31 Jul 2024 21:13:55 +0000 (23:13 +0200)
Since commit 22f2e1fca127b ("xshared: Share save_rule_details() with
legacy"), there are no callers outside of xshared.c anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c
iptables/xshared.h

index 8c7df3c986eed4b54129db5112a81eb3b1bcd5f3..1070fea42c8cf93f4629349d315c1172049daa98 100644 (file)
@@ -757,7 +757,7 @@ void print_ifaces(const char *iniface, const char *outiface, uint8_t invflags,
        printf(FMT("%-6s ", "out %s "), iface);
 }
 
-void save_iface(char letter, const char *iface, int invert)
+static void save_iface(char letter, const char *iface, int invert)
 {
        if (!strlen(iface) || (!strcmp(iface, "+") && !invert))
                return;
index 26c492ebee9ece23def634fed52346afd0070d49..0018b7c70bd83c7ef9fd788372a151fcfd36fd59 100644 (file)
@@ -216,7 +216,6 @@ void save_ipv6_addr(char letter, const struct in6_addr *addr,
 
 void print_ifaces(const char *iniface, const char *outiface, uint8_t invflags,
                  unsigned int format);
-void save_iface(char letter, const char *iface, int invert);
 
 void print_fragment(unsigned int flags, unsigned int invflags,
                    unsigned int format, bool fake);