]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
src: consolidate duplicate code in iptables/internal.h
authorJan Engelhardt <jengelh@medozas.de>
Tue, 10 Feb 2009 09:51:25 +0000 (10:51 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 10 Feb 2009 09:52:17 +0000 (10:52 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
include/ip6tables.h
include/iptables.h
include/iptables/internal.h.in

index 98f2da5c14448d2dd5fe7e9d70b72b02e1e6649d..86587e6f65d3e2006d4e80ffb153f2185a1279b8 100644 (file)
@@ -6,8 +6,6 @@
 #include <libiptc/libip6tc.h>
 #include <iptables/internal.h>
 
-extern int line;
-
 /* Your shared library should call one of these. */
 extern int do_command6(int argc, char *argv[], char **table,
                       struct ip6tc_handle **handle);
index d309059e8f4299964480e7334f3ea1fe52d864c4..f0aa345594b2e9ca8ee241b8d72dc902a383e826 100644 (file)
@@ -6,8 +6,6 @@
 #include <libiptc/libiptc.h>
 #include <iptables/internal.h>
 
-extern int line;
-
 /* Your shared library should call one of these. */
 extern int do_command(int argc, char *argv[], char **table,
                      struct iptc_handle **handle);
index 849e1722389f83b251e165484bfe31815d7676b5..8568e581ec8db78fdee2d34a0007a0ba6b0e95a2 100644 (file)
@@ -8,4 +8,6 @@
  */
 extern const char *program_name, *program_version;
 
+extern int line;
+
 #endif /* IPTABLES_INTERNAL_H */