From 95f0b420db24db279e1fb25b26973acf229e53e8 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 29 Mar 2004 20:11:24 +0000 Subject: faster passwd by lower the lseek. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index 5c423bbb..25857b96 100644 --- a/include/proto.h +++ b/include/proto.h @@ -644,8 +644,10 @@ unsigned StringHash(unsigned char *s); /* passwd */ int passwd_init(); int passwd_update(int num, userec_t *buf); +int passwd_index_update(int num, userec_t *buf); int passwd_query(int num, userec_t *buf); -int passwd_apply(int (*fptr)(userec_t *)); +int passwd_index_query(int num, userec_t *buf); +int passwd_apply(int (*fptr)(int, userec_t *)); void passwd_lock(); void passwd_unlock(); int passwd_update_money(int num); -- cgit v1.2.3