diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-22 23:45:47 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-22 23:45:47 +0800 |
commit | 95c641975bb6c7625a998135079c17e0844f5bbf (patch) | |
tree | bd516c833f6c9cbb738e099a634c59e1dc373f53 | |
parent | 3078ba6363327744338ea67097809ec6b2cb066b (diff) | |
download | pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar.gz pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar.bz2 pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar.lz pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar.xz pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.tar.zst pttbbs-95c641975bb6c7625a998135079c17e0844f5bbf.zip |
wrong data type ><
wrong action in if block @@
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2350 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 13 | ||||
-rw-r--r-- | mbbsd/assess.c | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 19c53727..fcdb77bb 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -343,10 +343,15 @@ typedef struct userinfo_t { unsigned short int chc_win; unsigned short int chc_lose; unsigned short int chc_tie; - unsigned short int goodpost; - unsigned short int badpost; - unsigned short int goodsale; - unsigned short int badsale; + + unsigned char goodpost; + char pad_1; + unsigned char badpost; + char pad_2; + unsigned char goodsale; + char pad_3; + unsigned char badsale; + char pad_4; char mailalert; char sex; diff --git a/mbbsd/assess.c b/mbbsd/assess.c index 35badc8c..af361a13 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -20,9 +20,9 @@ int inc_##_attr(char *userid, int num) \ int uid = getuser(userid);\ if( uid > 0 ){ \ userinfo_t *uinfo = search_ulist(uid); \ - inc(&uinfo->_attr, num); \ if (uinfo != NULL) \ - inc(&xuser._attr, num); \ + inc(&uinfo->_attr, num); \ + inc(&xuser._attr, num); \ passwd_update(uid, &xuser); \ return xuser._attr; }\ return 0;\ |