From 7a682002408149db360ca5e19ed08034464e0087 Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 10 Jun 2004 07:27:52 +0000 Subject: tell gcc to check formating string git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2057 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index 066df340..8d44e14c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -446,11 +446,11 @@ void out_lines(const char *str, int line); #define not_alnum(ch) (ch < '0' || (ch > '9' && ch < 'A') || (ch > 'Z' && ch < 'a') || ch > 'z') #define pressanykey() vmsg_lines(b_lines, NULL) int vmsg_lines(int lines, const char *msg); -int log_user(const char *fmt, ...); +int log_user(const char *fmt, ...) GCC_CHECK_FORMAT(1,2); time_t gettime(int line, time_t dt, char* head); void setcalfile(char *buf, char *userid); void stand_title(char *title); -char getans(const char *fmt,...); +char getans(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int getkey(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int vmsg(const char *fmt,...) GCC_CHECK_FORMAT(1,2); void trim(char *buf); -- cgit v1.2.3