summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-26 09:55:30 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-26 09:55:30 +0800
commitd0cb93f7a0db711d36836126a6c4a5311a639e05 (patch)
treee3e9e189faf9787136d0e083dd3fac2f8cefa171 /mbbsd/cache.c
parentfe021ef15d9bab17231102c3d092cd802c83d569 (diff)
downloadpttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar.gz
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar.bz2
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar.lz
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar.xz
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.tar.zst
pttbbs-d0cb93f7a0db711d36836126a6c4a5311a639e05.zip
remove old board friend structure,
avoid some memory problem of new board friend git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@353 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 9f62424b..9b14eb8a 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.38 2002/06/26 01:43:01 in2 Exp $ */
+/* $Id: cache.c,v 1.39 2002/06/26 01:55:30 in2 Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -623,8 +623,6 @@ static void reload_bcache() {
log_usies("CACHE", "reload bcache");
sort_bcache();
for( i = 0 ; i < SHM->Bnumber ; ++i ){
- bcache[i].u=NULL;
- bcache[i].nuser=0;
bcache[i].firstchild[0]=NULL;
bcache[i].firstchild[1]=NULL;
}
@@ -654,7 +652,6 @@ void addbrd_touchcache()
#if !defined(_BBS_UTIL_C_)
void reset_board(int bid) { /* Ptt: 這樣就不用老是touch board了 */
int fd,i,nuser;
- void *u;
boardheader_t *bhdr;
@@ -665,7 +662,6 @@ void reset_board(int bid) { /* Ptt: 這樣就不用老是touch board了 */
} else {
SHM->busystate_b[bid-1] = now;
nuser = bcache[bid-1].nuser;
- u = bcache[bid-1].u;
bhdr = bcache;
bhdr += bid;
@@ -681,7 +677,6 @@ void reset_board(int bid) { /* Ptt: 這樣就不用老是touch board了 */
bcache[i].firstchild[1]=NULL;
}
nuser = bcache[bid-1].nuser;
- u = bcache[bid-1].u;
SHM->busystate_b[bid-1] = 0;
}
}