summaryrefslogtreecommitdiff
path: root/clients/zstat/zstat.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-11-14 06:51:40 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-11-14 06:51:40 +0000
commitf5097e36cc073c2232179ffe25394046b0042c8c (patch)
treef8d1675f21e5af5ab0911fabd6016bf6f92ca1e2 /clients/zstat/zstat.c
parentde8a4c5dabe1660a5e493208d9f2f6487d5903bd (diff)
use #define's for service names
Diffstat (limited to 'clients/zstat/zstat.c')
-rw-r--r--clients/zstat/zstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clients/zstat/zstat.c b/clients/zstat/zstat.c
index 623ac9a..4f6928c 100644
--- a/clients/zstat/zstat.c
+++ b/clients/zstat/zstat.c
@@ -92,15 +92,15 @@ main(argc, argv)
exit(1);
}
- if (!(sp = getservbyname("zephyr-hm","udp"))) {
- fprintf(stderr,"zephyr-hm/udp: unknown service\n");
+ if (!(sp = getservbyname(HM_SVCNAME,"udp"))) {
+ fprintf(stderr,"%s/udp: unknown service\n", HM_SVCNAME);
exit(-1);
}
hm_port = sp->s_port;
- if (!(sp = getservbyname("zephyr-clt","udp"))) {
- fprintf(stderr,"zephyr-clt/udp: unknown service\n");
+ if (!(sp = getservbyname(SERVER_SVCNAME,"udp"))) {
+ fprintf(stderr,"%s/udp: unknown service\n",SERVER_SVCNAME);
exit(-1);
}