diff options
author | /C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org> | 2007-08-01 15:19:15 +0000 |
---|---|---|
committer | /C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org> | 2007-08-01 15:19:15 +0000 |
commit | c319c678598a02be2e941939663ca67606d82b64 (patch) | |
tree | 53c9c6d97b0b5971691900f87b0fa307fe6282c0 | |
parent | fea3814c696b7c93990d2a6325e8ca777f55914f (diff) |
Make @msg argument a const char *, just like printf().
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
-rw-r--r-- | include/xtables.h | 2 | ||||
-rw-r--r-- | ip6tables.c | 2 | ||||
-rw-r--r-- | iptables-xml.c | 2 | ||||
-rw-r--r-- | iptables.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/xtables.h b/include/xtables.h index 72e6ae2..3ac561f 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -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; diff --git a/ip6tables.c b/ip6tables.c index 0f96981..aeebed4 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -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; diff --git a/iptables-xml.c b/iptables-xml.c index 71d5288..1bb2e20 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -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; @@ -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; |