summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-31 20:09:34 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-31 20:09:34 +0800
commitcff9012e1298d96575b2a5a3e28ae8466baf31ed (patch)
treef4cfbfdde18e66da0b68da93916f02c5d56e99ad
parent7318511b631832a4356c29153aedcc8007d9502d (diff)
downloadpttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar.gz
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar.bz2
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar.lz
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar.xz
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.tar.zst
pttbbs-cff9012e1298d96575b2a5a3e28ae8466baf31ed.zip
fix comile error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/openticket.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pttbbs/util/openticket.c b/pttbbs/util/openticket.c
index 8ab89c2b..82858329 100644
--- a/pttbbs/util/openticket.c
+++ b/pttbbs/util/openticket.c
@@ -11,13 +11,9 @@ static char *betname[8] = {"Ptt", "Jaky", "Action", "Heat",
int
sendalert_uid(int uid, int alert){
userinfo_t *uentp = NULL;
- int n, i;
-
- n = count_logins(uid, 0);
- for (i = 1; i <= n; i++)
- if ((uentp = (userinfo_t *) search_ulistn(uid, i)))
- uentp->alerts |= alert;
+ if ((uentp = (userinfo_t *) search_ulistn(uid, 1)))
+ uentp->alerts |= alert;
return 0;
}