]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Make @msg argument a const char *, just like printf().
authorJan Engelhardt <jengelh@medozas.de>
Wed, 1 Aug 2007 15:19:15 +0000 (15:19 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Wed, 1 Aug 2007 15:19:15 +0000 (15:19 +0000)
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
include/xtables.h
ip6tables.c
iptables-xml.c
iptables.c

index 72e6ae22f12ce20660be614086d38b27d039936d..3ac561f5f77694a77926a85d8c34ec483579992f 100644 (file)
@@ -224,7 +224,7 @@ enum exittype {
 extern void exit_printhelp() __attribute__((noreturn));
 extern void exit_tryhelp(int) __attribute__((noreturn));
 int check_inverse(const char option[], int *invert, int *optind, int argc);
-void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
+void exit_error(enum exittype, const char *, ...)__attribute__((noreturn,
                                                          format(printf,2,3)));
 extern const char *program_name, *program_version;
 
index 0f96981e309b85de0fdc840fa7f9f9492aef8f36..aeebed4cf4284dcea60d3cc5615542263ed94ef1 100644 (file)
@@ -268,7 +268,7 @@ static void free_opts(int reset_offset)
 }
 
 void
-exit_error(enum exittype status, char *msg, ...)
+exit_error(enum exittype status, const char *msg, ...)
 {
        va_list args;
 
index 71d5288569217f670b4f8a063bc7de66527a7bb9..1bb2e2034dbe7b308633d08443a8a9d8372905c9 100644 (file)
@@ -29,7 +29,7 @@ const char *program_version;
 
 #ifndef IPTABLES_MULTI
 int line = 0;
-void exit_error(enum exittype status, char *msg, ...)
+void exit_error(enum exittype status, const char *msg, ...)
 {
        va_list args;
 
index 78ac13c3152cd6f58eb64fceb1f9ab92f8934187..f77a6f085c6bc934075773af3f09d07304c4542e 100644 (file)
@@ -348,7 +348,7 @@ static void free_opts(int reset_offset)
 }
 
 void
-exit_error(enum exittype status, char *msg, ...)
+exit_error(enum exittype status, const char *msg, ...)
 {
        va_list args;