summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-08 09:09:46 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-08 09:09:46 +0000
commit2e00f40497d181d064e0349696ea4573e92c8432 (patch)
treeac68f8173047f7b18196c84fb409f6cd38735050 /server/main.c
parent21ca915d4aeca651407c5d1ac6528ba4a410754f (diff)
Initialize nacklist with pointer to bss, rather than calling malloc.
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c12
1 files changed, 10 insertions, 2 deletions
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 = &not_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 */