summaryrefslogtreecommitdiffstats
path: root/mbbsd/assess.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:24:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:24:46 +0800
commitbf0ff170400889443fd3e3fffc6b1ae2b1738d68 (patch)
tree33b84a25b6b5809e2c526515de2b516f634ecb4d /mbbsd/assess.c
parent4d791013a709c9269c4e4872fd9d379168d0f47a (diff)
downloadpttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.gz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.bz2
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.lz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.xz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.zst
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.zip
move global variable xuser into local, save 512 bytes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/assess.c')
-rw-r--r--mbbsd/assess.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c
index af361a13..f79053af 100644
--- a/mbbsd/assess.c
+++ b/mbbsd/assess.c
@@ -17,7 +17,8 @@ inline static void inc(unsigned char *num, int n)
#define modify_column(_attr) \
int inc_##_attr(char *userid, int num) \
{ \
- int uid = getuser(userid);\
+ userec_t xuser; \
+ int uid = getuser(userid, &xuser);\
if( uid > 0 ){ \
userinfo_t *uinfo = search_ulist(uid); \
if (uinfo != NULL) \
@@ -36,7 +37,8 @@ modify_column(badsale); /* inc_badsale */
#if 0 //unused function
void set_assess(char *userid, unsigned char num, int type)
{
- int uid = getuser(userid);
+ userec_t xuser;
+ int uid = getuser(userid, &xuser);
if(uid<=0) return;
switch (type){
case GOODPOST: