summaryrefslogtreecommitdiff
path: root/clients/zctl/zctl.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1987-11-16 15:59:48 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1987-11-16 15:59:48 +0000
commitf5e468f791d953cdd7cb57d3b54df4cfba4b1fef (patch)
tree661bec077873e7c838cbe6a263501012ceb14995 /clients/zctl/zctl.c
parent85f1c7e856384da5ce5b62c120e5c17f209014d0 (diff)
[rfrench]
add printout of version numbers and ZGetSender() instead of TOKEN_ME
Diffstat (limited to 'clients/zctl/zctl.c')
-rw-r--r--clients/zctl/zctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index 29bf818..574b924 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -110,6 +110,9 @@ main(argc,argv)
exit((code != 0));
}
+ printf("ZCTL version %d.%d - Type '?' for a list of commands.\n\n",
+ ZVERSIONMAJOR,ZVERSIONMINOR);
+
ss_listen(sci_idx,&code);
}
@@ -405,7 +408,7 @@ sub_file(argc,argv)
sub.class = argv[1];
sub.classinst = argv[2];
- sub.recipient = (argc == 3)?ZGetSender():argv[3];
+ sub.recipient = (argc == 3)?TOKEN_ME:argv[3];
if ((wgport = ZGetWGPort()) == -1) {
ss_perror(sci_idx,errno,"while finding WindowGram port");