diff mbox series

[iptables,10/14] xshared: Make save_iface() static

Message ID 20240727213648.28761-11-phil@nwl.cc
State Accepted
Delegated to: Phil Sutter
Headers show
Series Some fixes and trivial improvements | expand

Commit Message

Phil Sutter July 27, 2024, 9:36 p.m. UTC
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 | 2 +-
 iptables/xshared.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/iptables/xshared.c b/iptables/xshared.c
index 8c7df3c986eed..1070fea42c8cf 100644
--- a/iptables/xshared.c
+++ b/iptables/xshared.c
@@ -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;
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 26c492ebee9ec..0018b7c70bd83 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -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);