diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-17 13:34:03 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-17 13:34:03 +0000 |
commit | 24e4c760ebf91478eb2c4547a6c4fb2d9b754a17 (patch) | |
tree | a4cd989a1c87f664949af762ba9c9ffbba9f0742 /server/server.c | |
parent | 5fe65d106f5491ee9c46a3658dcda964e4b5cd5d (diff) |
default format must be at least ""
set num_other_fields to zero
correct some syslog's
Diffstat (limited to 'server/server.c')
-rw-r--r-- | server/server.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/server/server.c b/server/server.c index fe1e4af..8965141 100644 --- a/server/server.c +++ b/server/server.c @@ -447,7 +447,8 @@ ZClient_t *client; pnotice->z_opcode = ADMIN_KILL_CLT; pnotice->z_sender = myname; /* myname is the hostname */ pnotice->z_recipient = ""; - pnotice->z_default_format = 0; + pnotice->z_default_format = ""; + pnotice->z_num_other_fields = 0; /* XXX */ auth = 0; @@ -1073,9 +1074,10 @@ int auth; pnotice->z_opcode = opcode; pnotice->z_sender = myname; /* myname is the hostname */ pnotice->z_recipient = ""; - pnotice->z_default_format = 0; + pnotice->z_default_format = ""; pnotice->z_message = (caddr_t) NULL; pnotice->z_message_len = 0; + pnotice->z_num_other_fields = 0; /* XXX for now, we don't do authentication */ auth = 0; @@ -1131,25 +1133,26 @@ int auth; pnotice->z_opcode = opcode; pnotice->z_sender = myname; /* myname is the hostname */ pnotice->z_recipient = ""; - pnotice->z_default_format = 0; + pnotice->z_default_format = ""; pnotice->z_message = (caddr_t) NULL; pnotice->z_message_len = 0; + pnotice->z_num_other_fields = 0; /* XXX for now, we don't do authentication */ auth = 0; if ((retval = ZFormatNoticeList(pnotice, lyst, num, &pack, &packlen, auth ? ZAUTH : ZNOAUTH)) != ZERR_NONE) { - syslog(LOG_WARNING, "snd_msg format: %s", error_message(retval)); + syslog(LOG_WARNING, "snd_msg_lst format: %s", error_message(retval)); return; } if ((retval = ZSetDestAddr(who)) != ZERR_NONE) { - syslog(LOG_WARNING, "snd_msg set addr: %s", + syslog(LOG_WARNING, "snd_msg_lst set addr: %s", error_message(retval)); xfree(pack); /* free allocated storage */ return; } if ((retval = ZSendPacket(pack, packlen, 0)) != ZERR_NONE) { - syslog(LOG_WARNING, "snd_msg xmit: %s", error_message(retval)); + syslog(LOG_WARNING, "snd_msg_lst xmit: %s", error_message(retval)); xfree(pack); /* free allocated storage */ return; } |