summaryrefslogtreecommitdiff
path: root/server/server.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-03 10:46:38 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-03 10:46:38 +0000
commita276a02d78636301b9a9e01bf2ca758139277016 (patch)
tree6ab989dc202dbe88d2d3c8ee13b0ee371fea279c /server/server.c
parentc2678137e3a395c46e31c69ef570ec916c3ffdfe (diff)
#ifdef CONCURRENT the self-queueing stuff
Diffstat (limited to 'server/server.c')
-rw-r--r--server/server.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/server/server.c b/server/server.c
index e6d70c7..0bb769b 100644
--- a/server/server.c
+++ b/server/server.c
@@ -21,9 +21,6 @@ static char rcsid_server_s_c[] = "$Header$";
#include "zserver.h"
#include <sys/socket.h> /* for AF_INET */
-#ifdef lint
-#include <sys/uio.h>
-#endif lint
#include <netdb.h> /* for gethostbyname */
/*
@@ -463,7 +460,7 @@ ZClient_t *client;
continue;
if (!(pack = (caddr_t) xmalloc(sizeof(ZPacket_t)))) {
- syslog(LOG_ERR, "srv_forw malloc");
+ syslog(LOG_ERR, "srv_kill_clt malloc");
continue; /* DON'T put on nack list */
}
@@ -489,7 +486,7 @@ ZClient_t *client;
if (!(nacked = (ZNotAcked_t *)xmalloc(sizeof(ZNotAcked_t)))) {
/* no space: just punt */
- syslog(LOG_ERR, "srv_forw nack malloc");
+ syslog(LOG_ERR, "srv_kill_clt nack malloc");
xfree(pack);
continue;
}
@@ -1293,6 +1290,7 @@ ZNotice_t *notice;
return;
}
+#ifdef CONCURRENT
/*
* send the queued message for the server.
*/
@@ -1322,6 +1320,8 @@ ZServerDesc_t *server;
}
}
}
+#endif CONCURRENT
+
/*
* a server has acknowledged a message we sent to him; remove it from
* server unacked queue
@@ -1500,6 +1500,7 @@ register ZSrvPending_t *pending;
return;
}
+#ifdef CONCURRENT
/*
* Queue something to be handled later by this server.
*/
@@ -1529,6 +1530,7 @@ struct sockaddr_in *who;
server_queue(me_server, packlen, pack, auth, who);
return;
}
+#endif CONCURRENT
/*
* dump info about servers onto the fp.