diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-28 12:23:57 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-28 12:23:57 +0000 |
commit | d8c436cf0c30410914c6a12cfb7b36b0600042d6 (patch) | |
tree | 976b81fdf17e7eb3801b5fc614e8d509541ab5d4 /clients/zleave | |
parent | eb316f53e3297b3a48ce88e130d1fdbf03402647 (diff) |
oops, some of the extra if (...) logic really was needed.
Diffstat (limited to 'clients/zleave')
-rw-r--r-- | clients/zleave/zleave.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/clients/zleave/zleave.c b/clients/zleave/zleave.c index ee5f6fc..af3aff4 100644 --- a/clients/zleave/zleave.c +++ b/clients/zleave/zleave.c @@ -83,15 +83,16 @@ char **argv; "Can't find WindowGram subscription port.\n"); fprintf(stderr,"Will write directly to terminal.\n"); use_zephyr = 0; + } else { + sub.class = MESSAGE_CLASS; + sub.classinst = INSTANCE; + sub.recipient = ZGetSender(); + if (ZSubscribeTo(&sub,1,(u_short)port) != ZERR_NONE) { + fprintf(stderr, + "Subscription error! Writing to your terminal...\n"); + use_zephyr = 0; + } } - sub.class = MESSAGE_CLASS; - sub.classinst = INSTANCE; - sub.recipient = ZGetSender(); - if (ZSubscribeTo(&sub,1,(u_short)port) != ZERR_NONE) { - fprintf(stderr, - "Subscription error! Writing to your terminal...\n"); - use_zephyr = 0; - } } if (argc < 2) { |