summaryrefslogtreecommitdiffstats
path: root/util/openticket.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 /util/openticket.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 'util/openticket.c')
-rw-r--r--util/openticket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/openticket.c b/util/openticket.c
index b93439ab..4bd761a3 100644
--- a/util/openticket.c
+++ b/util/openticket.c
@@ -8,8 +8,6 @@ static char *betname[8] = {"Ptt", "Jaky", "Action", "Heat",
#define MAX_DES 7 /* 最大保留獎數 */
-extern userec_t xuser;
-
int Link(char *src, char *dst)
{
char cmd[200];
@@ -159,7 +157,7 @@ int main(int argc, char **argv)
{
printf("恭喜 %-15s買了%9d 張 %s, 獲得 %d 枚P幣\n"
,userid, num, betname[mybet], money * num);
- if((uid=getuser(userid))==0) continue;
+ if((uid=searchuser(userid))==0) continue;
deumoney(uid, money * num);
sprintf(genbuf, BBSHOME "/home/%c/%s", userid[0], userid);
stampfile(genbuf, &mymail);