From 2e00f40497d181d064e0349696ea4573e92c8432 Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Fri, 8 Mar 1991 09:09:46 +0000 Subject: Initialize nacklist with pointer to bss, rather than calling malloc. --- server/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'server/main.c') diff --git a/server/main.c b/server/main.c index 5f1140a..b6453f4 100644 --- a/server/main.c +++ b/server/main.c @@ -15,7 +15,8 @@ #ifndef lint #ifndef SABER -static char rcsid_main_c[] = "$Id$"; +static char rcsid_main_c[] = + "$Id$"; #endif #endif @@ -319,15 +320,22 @@ initialize(void) server_init(); +#if 0 if (!(nacklist = (ZNotAcked_t *) xmalloc(sizeof(ZNotAcked_t)))) { /* unrecoverable */ syslog(LOG_CRIT, "nacklist malloc"); abort(); } +#else + { + static ZNotAcked_t not_acked_head; + nacklist = ¬_acked_head; + } +#endif bzero((caddr_t) nacklist, sizeof(ZNotAcked_t)); nacklist->q_forw = nacklist->q_back = nacklist; - nexttimo = 1L; /* trigger the timers when we hit + nexttimo = 1L; /* trigger the timers when we hit the FOR loop */ (void) ZInitialize(); /* set up the library */ -- cgit v1.2.3