summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-17 11:43:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-17 11:43:21 +0800
commit1f197b3f501e0b9412e7686ec6b26b8cf39f0213 (patch)
tree9688b9d939d087fe650532dc6d9998210a54846b
parent000083cc87916be528e889208126e700918c313e (diff)
downloadpttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar.gz
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar.bz2
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar.lz
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar.xz
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.tar.zst
pttbbs-1f197b3f501e0b9412e7686ec6b26b8cf39f0213.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.linux@2335 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/shmctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 531f5235..68e66dbb 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -365,7 +365,7 @@ inline void utmpsort(int sortall)
qsort(SHM->sorted[ns][5], count, sizeof(int), cmputmpchc);
memset(nusers, 0, sizeof(nusers));
for (i = 0; i < count; ++i) {
- uentp = &SHM->bcache[SHM->sorted[ns][0][i]];
+ uentp = &SHM->uinfo[SHM->sorted[ns][0][i]];
if (uentp && uentp->pid &&
0 < uentp->brc_id && uentp->brc_id < MAX_BOARD)
++nusers[uentp->brc_id - 1];