From 3280e02b6e0b387b17bbf41352b31a1fc5cf5af9 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 24 May 2002 19:05:47 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mbbsd/board.c') diff --git a/mbbsd/board.c b/mbbsd/board.c index 5c030b4b..58c01601 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.15 2002/05/24 18:56:28 ptt Exp $ */ +/* $Id: board.c,v 1.16 2002/05/24 19:05:47 ptt Exp $ */ #include #include #include @@ -690,14 +690,13 @@ void setutmpbid(int bid) brdshm->busystate_b[id-1]=1; u=bcache[id-1].u; if(u!=(void*)currutmp) + { for(;u && u->nextbfriend != (void*)currutmp; u=u->nextbfriend); + if(u) u->nextbfriend = currutmp->nextbfriend; + } else - bcache[id-1].u=NULL; - if(u) - { - bcache[id-1].nuser--; - u->nextbfriend = currutmp->nextbfriend; - } + bcache[id-1].u=currutmp->nextbfriend; + bcache[id-1].nuser--; brdshm->busystate_b[id-1]=0; } } -- cgit v1.2.3