diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-13 05:46:27 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-13 05:46:27 +0000 |
commit | 023cb62a4fefd1506067b65d4d97b2c050343d01 (patch) | |
tree | c14a261ad4ff5960938c9b3ddb00e9f20ff356cc /server/main.c | |
parent | 99513dc6ef57035301ffa16ba5269ddfbaa548d8 (diff) |
nacklist is now initialized statically.
Diffstat (limited to 'server/main.c')
-rw-r--r-- | server/main.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/server/main.c b/server/main.c index 23b0abb..e51af18 100644 --- a/server/main.c +++ b/server/main.c @@ -107,7 +107,8 @@ int nfildes; /* number to look at in select() */ struct sockaddr_in sock_sin; /* address of the socket */ struct timeval nexthost_tv; /* time till next timeout for select */ -ZNotAcked_t *nacklist; /* list of packets waiting for ack's */ +static ZNotAcked_t not_acked_head; +ZNotAcked_t *nacklist = ¬_acked_head; /* list of packets waiting for acks */ u_short hm_port; /* the port # of the host manager */ @@ -320,19 +321,6 @@ 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 |