summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 03:05:47 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 03:05:47 +0800
commit3280e02b6e0b387b17bbf41352b31a1fc5cf5af9 (patch)
treef4b6381669c1e988aa740f34d3db68d666d7e235 /mbbsd/board.c
parent22a3aee8a665dc8a3433d0d73426479994d5178f (diff)
downloadpttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar.gz
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar.bz2
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar.lz
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar.xz
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.tar.zst
pttbbs-3280e02b6e0b387b17bbf41352b31a1fc5cf5af9.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c13
1 files changed, 6 insertions, 7 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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;
}
}