summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-10 15:27:52 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-10 15:27:52 +0800
commit7a682002408149db360ca5e19ed08034464e0087 (patch)
treedf7ed99d808d0a28bc2de004d6e25511940adad9
parenta7fa433bcdcce4a14154ac0f010e656867b90f41 (diff)
downloadpttbbs-7a682002408149db360ca5e19ed08034464e0087.tar
pttbbs-7a682002408149db360ca5e19ed08034464e0087.tar.gz
pttbbs-7a682002408149db360ca5e19ed08034464e0087.tar.bz2
pttbbs-7a682002408149db360ca5e19ed08034464e0087.tar.lz
pttbbs-7a682002408149db360ca5e19ed08034464e0087.tar.xz
pttbbs-7a682002408149db360ca5e19ed08034464e0087.tar.zst
pttbbs-7a682002408149db360ca5e19ed08034464e0087.zip
tell gcc to check formating string
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2057 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h4
1 files changed, 2 insertions, 2 deletions
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);