From 1f197b3f501e0b9412e7686ec6b26b8cf39f0213 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 17 Nov 2004 03:43:21 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.linux@2335 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/shmctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.2.3