summaryrefslogtreecommitdiffstats
path: root/common/bbs/cache.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-12 20:22:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-12 20:22:07 +0800
commit2f6959aecaaaed4980f7c8740f2fae2c8fc326ca (patch)
treed3d59847cadac9939bc0e9945530cfd1b7a5caeb /common/bbs/cache.c
parentc5f8e88cde8ad8120fd5e2bdaddd2f5591502aa8 (diff)
downloadpttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.gz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.bz2
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.lz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.xz
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.tar.zst
pttbbs-2f6959aecaaaed4980f7c8740f2fae2c8fc326ca.zip
* refine cmbbs: move util_passwd.o to cmbbs/passwd.c.
* note: in order to workaround the buggy/dirty synchronization hacks, changed 'passwd_query' and 'passwd_update' to passwd_sync_*. * util/* and daemon/* use directly passwd_query/update, and mbbsd should use passwd_sync_*. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/bbs/cache.c')
-rw-r--r--common/bbs/cache.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/common/bbs/cache.c b/common/bbs/cache.c
index b61dec86..1166a85b 100644
--- a/common/bbs/cache.c
+++ b/common/bbs/cache.c
@@ -19,11 +19,6 @@
#include "modes.h" // for DEBUGSLEEPING
-// TODO some APIs currently in util_passwd.o and should be moved to
-// common/bbs/passwd.c...
-int passwd_query(int num, userec_t *buf);
-int passwd_update_money(int num);
-
//////////////////////////////////////////////////////////////////////////
// This is shared by utility library and core BBS,
// so do not put code using currutmp/cuser here.
@@ -215,19 +210,6 @@ searchuser(const char *userid, char *rightid)
return dosearchuser(userid, rightid);
}
-// XXX check this: can we have it here?
-int
-getuser(const char *userid, userec_t *xuser)
-{
- int uid;
-
- if ((uid = searchuser(userid, NULL))) {
- passwd_query(uid, xuser);
- xuser->money = moneyof(uid);
- }
- return uid;
-}
-
char *
getuserid(int num)
{