diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-28 03:08:30 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-28 03:08:30 +0800 |
commit | 586110689d0b390fd08cba1bdddbbe3e0ed1fab3 (patch) | |
tree | e45d4d150c272ea5d9abda70a9d8bac89160d295 /mbbsd | |
parent | fca296e3aa7cbe20604b475406645d32899921c1 (diff) | |
download | pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar.gz pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar.bz2 pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar.lz pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar.xz pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.tar.zst pttbbs-586110689d0b390fd08cba1bdddbbe3e0ed1fab3.zip |
fix last commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2560 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index d0fb17b3..a556c30b 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -5,11 +5,11 @@ static int is_playing(int unmode) { - register int i, j; + register int i; register userinfo_t *uentp; unsigned int p = StringHash(cuser.userid) % USHM_SIZE; - for (i = j = 0; i < USHM_SIZE; i++) { // XXX linear search + for (i = 0; i < USHM_SIZE; i++, p++) { // XXX linear search if (p == USHM_SIZE) p = 0; uentp = &(SHM->uinfo[p]); |