summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-13 05:46:27 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-03-13 05:46:27 +0000
commit023cb62a4fefd1506067b65d4d97b2c050343d01 (patch)
treec14a261ad4ff5960938c9b3ddb00e9f20ff356cc /server/main.c
parent99513dc6ef57035301ffa16ba5269ddfbaa548d8 (diff)
nacklist is now initialized statically.
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c16
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 = &not_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 = &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