From 42623d301183c080a095791fd5ada478f812d272 Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 5 Dec 2003 03:33:26 +0000 Subject: user could remove dircache if need (not tested) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1396 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mbbsd/cache.c') diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 7059d4e2..cacdb1d7 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -509,10 +509,13 @@ void touchbtotal(int bid) { void touchdircache(int bid) { +#if DIRCACHESIZE int *i = (int *)&SHM->dircache[bid - 1][0].filename[0]; *i = 0; +#endif } +#if DIRCACHESIZE void load_fileheader_cache(int bid, char *direct) { @@ -553,6 +556,7 @@ get_fileheader_cache(int bid, char *direct, fileheader_t * headers, memcpy(headers, &(SHM->dircache[bid - 1][n]), sizeof(fileheader_t) * ret); return ret; } +#endif static int cmpboardname(boardheader_t ** brd, boardheader_t ** tmp) -- cgit v1.2.3