From d8c436cf0c30410914c6a12cfb7b36b0600042d6 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 28 Jun 1988 12:23:57 +0000 Subject: oops, some of the extra if (...) logic really was needed. --- clients/zleave/zleave.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'clients/zleave') 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) { -- cgit v1.2.3