From 91cb487cf2a689ae2d970dd34213f8a8cdd03988 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 29 Apr 2004 18:14:00 +0000 Subject: change log_file() log_user() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1890 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index 40786439..b799695b 100644 --- a/include/proto.h +++ b/include/proto.h @@ -352,7 +352,6 @@ void my_send(char *uident); void show_call_in(int save, int which); void write_request (int sig); void log_usies(char *mode, char *mesg); -void log_user(char *msg); void system_abort(void); void abort_bbs(int sig); void del_distinct(char *fname, char *line); @@ -481,11 +480,11 @@ void out_lines(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, ...); time_t gettime(int line, time_t dt, char* head); void setcalfile(char *buf, char *userid); void stand_title(char *title); -//int getans(const char *fmt,...) GCC_CHECK_FORMAT(1,2); -char getans(char *); +char getans(const char *fmt,...); int getkey(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int vmsg(const char *fmt,...) GCC_CHECK_FORMAT(1,2); void trim(char *buf); @@ -496,7 +495,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 *filename, char *buf, int flags); +int log_file(char *fn, int ifcreate, 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