]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: Hide xtables_strtoul_base() symbol
authorPhil Sutter <phil@nwl.cc>
Thu, 7 Nov 2024 16:02:20 +0000 (17:02 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 7 Nov 2024 16:41:04 +0000 (17:41 +0100)
There are no external users, no need to promote it in xtables.h.

Fixes: 1af6984c57cce ("libxtables: Introduce xtables_strtoul_base()")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/Makefile.am
include/xtables.h
include/xtables_internal.h [new file with mode: 0644]
libxtables/xtables.c
libxtables/xtoptions.c

index 07c88b901e80869c174838eb38857c937257e8d0..f3e480f72bf098a6967c8ca985977858b09feb87 100644 (file)
@@ -11,7 +11,7 @@ nobase_include_HEADERS = \
        libiptc/ipt_kernel_headers.h libiptc/libiptc.h \
        libiptc/libip6tc.h libiptc/libxtc.h libiptc/xtcshared.h
 
-EXTRA_DIST = iptables linux iptables.h ip6tables.h
+EXTRA_DIST = iptables linux iptables.h ip6tables.h xtables_internal.h
 
 uninstall-hook:
        dir=${includedir}/libiptc; { \
index ab856ebc426acecaf5979e6a80ec109a112926ad..9fdd8291e91b9c6b3dda7f1fbcb1db86a89c679a 100644 (file)
@@ -491,8 +491,6 @@ extern void xtables_register_matches(struct xtables_match *, unsigned int);
 extern void xtables_register_target(struct xtables_target *me);
 extern void xtables_register_targets(struct xtables_target *, unsigned int);
 
-extern bool xtables_strtoul_base(const char *, char **, uintmax_t *,
-       uintmax_t, uintmax_t, unsigned int);
 extern bool xtables_strtoul(const char *, char **, uintmax_t *,
        uintmax_t, uintmax_t);
 extern bool xtables_strtoui(const char *, char **, unsigned int *,
diff --git a/include/xtables_internal.h b/include/xtables_internal.h
new file mode 100644 (file)
index 0000000..a87a40c
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef XTABLES_INTERNAL_H
+#define XTABLES_INTERNAL_H 1
+
+extern bool xtables_strtoul_base(const char *, char **, uintmax_t *,
+       uintmax_t, uintmax_t, unsigned int);
+
+#endif /* XTABLES_INTERNAL_H */
index 7d54540b73b73757f1b047120ff707c0e2a1eab8..5fc50a63f380bed3ca3dabc2edd48bd230e8cb43 100644 (file)
@@ -64,6 +64,7 @@
 #endif
 #include <getopt.h>
 #include "iptables/internal.h"
+#include "xtables_internal.h"
 
 #define NPROTO 255
 
index 774d0ee655ba73754a2f15a297c4410e34db315a..64d6599af904bc6331167a2491003fad01c27bb5 100644 (file)
@@ -21,6 +21,7 @@
 #include <arpa/inet.h>
 #include <netinet/ip.h>
 #include "xtables.h"
+#include "xtables_internal.h"
 #ifndef IPTOS_NORMALSVC
 #      define IPTOS_NORMALSVC 0
 #endif