[netfilter-cvslog] r6981 - in trunk/iptables: . include

yasuyuki at netfilter.org yasuyuki at netfilter.org
Wed Aug 1 17:19:15 CEST 2007


Author: yasuyuki at netfilter.org
Date: 2007-08-01 17:19:15 +0200 (Wed, 01 Aug 2007)
New Revision: 6981

Modified:
   trunk/iptables/include/xtables.h
   trunk/iptables/ip6tables.c
   trunk/iptables/iptables-xml.c
   trunk/iptables/iptables.c
Log:
Make @msg argument a const char *, just like printf().

Signed-off-by: Jan Engelhardt <jengelh at gmx.de>


Modified: trunk/iptables/include/xtables.h
===================================================================
--- trunk/iptables/include/xtables.h	2007-08-01 14:31:38 UTC (rev 6980)
+++ trunk/iptables/include/xtables.h	2007-08-01 15:19:15 UTC (rev 6981)
@@ -224,7 +224,7 @@
 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;
 

Modified: trunk/iptables/ip6tables.c
===================================================================
--- trunk/iptables/ip6tables.c	2007-08-01 14:31:38 UTC (rev 6980)
+++ trunk/iptables/ip6tables.c	2007-08-01 15:19:15 UTC (rev 6981)
@@ -268,7 +268,7 @@
 }
 
 void
-exit_error(enum exittype status, char *msg, ...)
+exit_error(enum exittype status, const char *msg, ...)
 {
 	va_list args;
 

Modified: trunk/iptables/iptables-xml.c
===================================================================
--- trunk/iptables/iptables-xml.c	2007-08-01 14:31:38 UTC (rev 6980)
+++ trunk/iptables/iptables-xml.c	2007-08-01 15:19:15 UTC (rev 6981)
@@ -29,7 +29,7 @@
 
 #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;
 

Modified: trunk/iptables/iptables.c
===================================================================
--- trunk/iptables/iptables.c	2007-08-01 14:31:38 UTC (rev 6980)
+++ trunk/iptables/iptables.c	2007-08-01 15:19:15 UTC (rev 6981)
@@ -348,7 +348,7 @@
 }
 
 void
-exit_error(enum exittype status, char *msg, ...)
+exit_error(enum exittype status, const char *msg, ...)
 {
 	va_list args;
 




More information about the netfilter-cvslog mailing list