summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:24:54 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:24:54 +0800
commit828ac5e72830a3620f8831002b989d4498ae44cc (patch)
tree5af56ed9ab737ac5da9f36a2d071cf90f3b24b06 /mbbsd
parenta7bfcd9e4aff3dcec474ff42643c4bd70bc12334 (diff)
downloadpttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.gz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.bz2
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.lz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.xz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.zst
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.zip
clean up non-exist board if set SHM->cleanboard
WARNING, SHM modified git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1452 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c4
-rw-r--r--mbbsd/fav.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 0c50ede1..77cdc756 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -321,10 +321,6 @@ void imovefav(int old)
move_in_current_folder(old, new);
}
-inline int validboard(int bid){
- return bcache[bid].brdname[0];
-}
-
void load_brdbuf(void)
{
static char firsttime = 1;
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index fb78006a..4358f425 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -237,7 +237,7 @@ static void rebuild_fav(fav_t *fp)
switch (get_item_type(ft)){
case FAVT_BOARD:
bid = cast_board(ft)->bid;
- if (!validboard(bid - 1))
+ if (SHM->cleanboard && bcache[bid - 1].brdname[0])
continue;
break;
case FAVT_LINE: