summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
commit80d6431f5d2fa48f925712ccd98c1983404e7ee9 (patch)
tree6411ae9d890ba61413664da1f37f468259f4281c /mbbsd/passwd.c
parent82664ae2ecc5db24c614f7a625e859975f55a6b5 (diff)
downloadpttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.gz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.bz2
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.lz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.xz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.zst
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.zip
revert cuser from pointer to buffer.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index 7058f12b..88bfcaf7 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -97,15 +97,13 @@ passwd_query(int num, userec_t * buf)
return 0;
}
-userec_t userecbuf;
int initcuser(char *userid)
{
// Ptt: setup cuser and usernum here
- cuser = &userecbuf;
if(userid[0]=='\0' ||
!(usernum = searchuser(userid)) || usernum > MAX_USERS)
return -1;
- passwd_query(usernum, &userecbuf);
+ passwd_query(usernum, &cuser);
return usernum;
}