summaryrefslogtreecommitdiff
path: root/clients/zstat
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-09-24 12:33:29 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-09-24 12:33:29 +0000
commit187aa3316fd2e00c80f5770802fc37a0417abf4b (patch)
tree45df789486339faddf6283575f98550c55ae23b2 /clients/zstat
parent5187f7f8ebc80dd2c821a00fd02b5c1c2ed77502 (diff)
Changed bcopy/bzero to _BCOPY/_BZERO macros (defined in <zephyr/zephyr_conf.h>
Diffstat (limited to 'clients/zstat')
-rw-r--r--clients/zstat/zstat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/clients/zstat/zstat.c b/clients/zstat/zstat.c
index f5d5b75..ed013a1 100644
--- a/clients/zstat/zstat.c
+++ b/clients/zstat/zstat.c
@@ -55,7 +55,7 @@ const
int outoftime = 0;
-#if defined(ultrix) || defined(_POSIX_SOURCE)
+#if defined(ultrix) || defined(POSIX)
void
#endif
timeout()
@@ -164,7 +164,7 @@ hm_stat(host,server)
struct tm *tim;
ZNotice_t notice;
- bzero((char *)&sin,sizeof(struct sockaddr_in));
+ _BZERO((char *)&sin,sizeof(struct sockaddr_in));
sin.sin_port = hm_port;
@@ -179,11 +179,11 @@ hm_stat(host,server)
fprintf(stderr,"Unknown host: %s\n",host);
exit(-1);
}
- bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
+ _BCOPY(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
printf("Hostmanager stats: %s\n",hp->h_name);
- (void) bzero((char *)&notice, sizeof(notice));
+ (void) _BZERO((char *)&notice, sizeof(notice));
notice.z_kind = STAT;
notice.z_port = 0;
notice.z_class = HM_STAT_CLASS;
@@ -260,7 +260,7 @@ srv_stat(host)
long runtime;
struct tm *tim;
- bzero((char *) &sin,sizeof(struct sockaddr_in));
+ _BZERO((char *) &sin,sizeof(struct sockaddr_in));
sin.sin_port = srv_port;
@@ -275,11 +275,11 @@ srv_stat(host)
fprintf(stderr,"Unknown host: %s\n",host);
exit(-1);
}
- bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
+ _BCOPY(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
printf("Server stats: %s\n",hp->h_name);
- (void) bzero((char *)&notice, sizeof(notice));
+ (void) _BZERO((char *)&notice, sizeof(notice));
notice.z_kind = UNSAFE;
notice.z_port = 0;
notice.z_class = ZEPHYR_ADMIN_CLASS;