From 923905e83ad2d075f0d40125e8acbd0ca88ea938 Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 3 May 2004 15:19:01 +0000 Subject: in log_file(), use LOG_VF if need to vfprintf(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1921 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 4 ++++ include/proto.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index 1b6826a7..fd81bec9 100644 --- a/include/common.h +++ b/include/common.h @@ -189,4 +189,8 @@ #define NOTREPLYING -1 #define REPLYING 0 #define RECVINREPLYING 1 + +#define LOG_CREAT 1 +#define LOG_VF 2 + #endif diff --git a/include/proto.h b/include/proto.h index e9b46dc9..c6731ad1 100644 --- a/include/proto.h +++ b/include/proto.h @@ -496,7 +496,7 @@ void sethomepath(char *buf, char *userid); void sethomedir(char *buf, char *userid); char *Cdate(time_t *clock); void sethomefile(char *buf, char *userid, char *fname); -int log_file(char *fn, int ifcreate, const char *fmt,...); +int log_file(char *fn, int flag, const char *fmt,...); void str_lower(char *t, char *s); int strstr_lower(char *str, char *tag); int cursor_key(int row, int column); -- cgit v1.2.3