diff options
-rw-r--r-- | mbbsd/board.c | 20 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 5 |
2 files changed, 2 insertions, 23 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; } diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 3a5828b0..3aee5ce4 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.66 2003/02/10 17:41:45 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.67 2003/03/15 12:06:39 in2 Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -942,9 +942,6 @@ start_client() signal(SIGFPE, abort_bbs_debug); signal(SIGBUS, abort_bbs_debug); signal(SIGSEGV, abort_bbs_debug); -#ifdef CRITICAL_MEMORY - signal(CMSIGNAL, sigfree); -#endif signal_restart(SIGUSR1, talk_request); signal_restart(SIGUSR2, write_request); |