diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-19 22:53:05 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-19 22:53:05 +0800 |
commit | 29e05c28af899e11562f3dddd40c4a4f0c302633 (patch) | |
tree | a312eaaf070a338baf518674b6071854354e4de1 | |
parent | 1873ff20ac972d82f1ab43f68e2a97999420cc66 (diff) | |
download | pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar.gz pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar.bz2 pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar.lz pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar.xz pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.tar.zst pttbbs-29e05c28af899e11562f3dddd40c4a4f0c302633.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@478 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/board.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c index 346de070..59dbd68a 100644 --- a/pttbbs/mbbsd/board.c +++ b/pttbbs/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); |