diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-28 12:22:29 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-28 12:22:29 +0000 |
commit | eb316f53e3297b3a48ce88e130d1fdbf03402647 (patch) | |
tree | c21cb7c1c823c7099ff8a11cec1b5d7e14a6cafe /clients/zleave | |
parent | 6fb52ec00c44b60a96a5d2b2f40de0ce826172d0 (diff) |
bzero the notice first
sender is a char *
remove extra if (...) logic
Diffstat (limited to 'clients/zleave')
-rw-r--r-- | clients/zleave/zleave.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clients/zleave/zleave.c b/clients/zleave/zleave.c index cd27f95..ee5f6fc 100644 --- a/clients/zleave/zleave.c +++ b/clients/zleave/zleave.c @@ -84,9 +84,6 @@ char **argv; fprintf(stderr,"Will write directly to terminal.\n"); use_zephyr = 0; } - } - - if (use_zephyr) { sub.class = MESSAGE_CLASS; sub.classinst = INSTANCE; sub.recipient = ZGetSender(); @@ -268,13 +265,14 @@ char *msg; delay(slp); if (use_zephyr) { + (void) bzero((char *)¬ice, sizeof(notice)); notice.z_kind = UNACKED; notice.z_port = 0; notice.z_class = MESSAGE_CLASS; notice.z_class_inst = INSTANCE; notice.z_recipient = ZGetSender(); notice.z_opcode = ""; - notice.z_sender = 0; + notice.z_sender = (char *) 0; notice.z_default_format = "\n$1"; notice.z_message = msg; notice.z_message_len = strlen(msg); |