From b0a73061e580398fb00910de6e6e37592fabe731 Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 19 Aug 2002 14:53:05 +0000 Subject: fix last commit bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@478 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/board.c b/mbbsd/board.c index 346de070..59dbd68a 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.51 2002/08/19 14:47:40 in2 Exp $ */ +/* $Id: board.c,v 1.52 2002/08/19 14:53:05 in2 Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -468,7 +468,11 @@ load_boards(char *key) brdnum = 0; if (class_bid <= 0) { nbrdlength = numboards * sizeof(boardstat_t); +#ifdef OUTTA_CACHE nbrd = (boardstat_t *) outta_malloc(nbrdlength, 'b'); +#else + nbrd = (boardstat_t *) malloc(nbrdlength); +#endif for (i = 0; i < numboards; i++) { if ((bptr = SHM->bsorted[type][i]) == NULL) continue; @@ -487,7 +491,11 @@ load_boards(char *key) } } else { nbrdlength = bptr->childcount * sizeof(boardstat_t); +#ifdef OUTTA_CACHE nbrd = (boardstat_t *) outta_malloc(nbrdlength, 'b'); +#else + nbrd = (boardstat_t *) malloc(nbrdlength); +#endif for (bptr = bptr->firstchild[type]; bptr != (boardheader_t *) ~ 0; bptr = bptr->next[type]) { n = (int)(bptr - bcache); -- cgit v1.2.3