summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-15 20:06:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-15 20:06:39 +0800
commit17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b (patch)
treefb9f87bd51cb44d3d393c072964e6fbcf2de20d5 /mbbsd/board.c
parent8f443aa1887bcae33ffbd46c1d2119f23ebcffde (diff)
downloadpttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.gz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.bz2
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.lz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.xz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.zst
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.zip
remove sigfree
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 8d91f3fe..e8fbe5ca 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.84 2003/02/26 15:44:21 victor Exp $ */
+/* $Id: board.c,v 1.85 2003/03/15 12:06:39 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -250,12 +250,6 @@ void FREE(void *ptr)
vmsg("critical free %d bytes", size);
#endif
}
-
-void sigfree(int sig)
-{
- if( !choose_board_depth )
- save_brdbuf();
-}
#endif
void load_brdbuf(void)
@@ -271,11 +265,7 @@ void load_brdbuf(void)
favsize += sizeof(int);
#endif
-#ifdef CRITICAL_MEMORY
- zapbuf = (int *)MALLOC(size);
-#else
zapbuf = (int *)malloc(size);
-#endif
favbuf = (char *)malloc(favsize);
#ifdef MEM_CHECK
@@ -368,17 +358,9 @@ save_brdbuf(void)
close(fd);
}
#ifdef MEM_CHECK
-# ifdef CRITICAL_MEMORY
- FREE(&zapbuf[-1]);
-# else
free(&zapbuf[-1]);
-# endif
#else
-# ifdef CRITICAL_MEMORY
- FREE(zapbuf);
-# else
free(zapbuf);
-# endif
#endif
zapbuf = NULL;
}