summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-30 04:11:24 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-30 04:11:24 +0800
commit95f0b420db24db279e1fb25b26973acf229e53e8 (patch)
tree72bd3843dbb180d2d78d998aa59431bffaf1b044 /include
parent1091228603cdb191d3c02e0f22468310140d0f32 (diff)
downloadpttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar.gz
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar.bz2
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar.lz
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar.xz
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.tar.zst
pttbbs-95f0b420db24db279e1fb25b26973acf229e53e8.zip
faster passwd by lower the lseek.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h4
-rw-r--r--include/util.h3
2 files changed, 4 insertions, 3 deletions
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);
diff --git a/include/util.h b/include/util.h
index d19944cc..44f8ca58 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,7 +1,6 @@
#ifndef INCLUDE_UTIL_H
#define INCLUDE_UTIL_H
int passwd_mmap(void);
-int passwd_apply(int (*fptr)(userec_t *));
-int passwd_apply2(int (*fptr)(int, userec_t *));
+int passwd_apply(int (*fptr)(int, userec_t *));
#endif // INCLUDE_UTIL_H