From 98acb18b8e6b7d7bfdd49809774e61328ef7f7a5 Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 30 Mar 2004 16:50:34 +0000 Subject: add mmap to cuser get ride of passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index cd3e791c..69e6ea74 100644 --- a/include/proto.h +++ b/include/proto.h @@ -152,7 +152,7 @@ int give_tax(int money); int vice(int money, char* item); int inumoney(char *tuser, int money); int cal(); -#define reload_money() cuser.money=moneyof(usernum) +#define reload_money() cuser->money=moneyof(usernum) int demoney(int money); int deumoney(int uid, int money); int lockutmpmode(int unmode, int state); @@ -350,7 +350,6 @@ void abort_bbs(int sig); void del_distinct(char *fname, char *line); void add_distinct(char *fname, char *line); void show_last_call_in(int save); -int dosearchuser(char *userid); void u_exit(char *mode); void talk_request(int sig); int reply_connection_request(userinfo_t *uip); @@ -652,6 +651,9 @@ int passwd_apply(int (*fptr)(int, userec_t *)); void passwd_lock(); void passwd_unlock(); int passwd_update_money(int num); +int initcuser(char *userid); +int freecuser(); + /* calendar */ int calendar(); -- cgit v1.2.3