summaryrefslogtreecommitdiff
path: root/clients/zstat
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:33:41 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:33:41 +0000
commit04c5375588977a23555482fa17b5fb07d5a31480 (patch)
tree615b2a39746d3c07a834bc0081e835eff66aa71e /clients/zstat
parent2f93f7ef87c258a614cde36b037131cb8bab1fce (diff)
Changed bzero/bcopy to memset/memcpy [ANSI]
Diffstat (limited to 'clients/zstat')
-rw-r--r--clients/zstat/zstat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clients/zstat/zstat.c b/clients/zstat/zstat.c
index a72ed4b..2a31f69 100644
--- a/clients/zstat/zstat.c
+++ b/clients/zstat/zstat.c
@@ -167,7 +167,7 @@ hm_stat(host,server)
struct sigaction sa;
#endif
- _BZERO((char *)&sin,sizeof(struct sockaddr_in));
+ (void) memset((char *)&sin, 0, sizeof(struct sockaddr_in));
sin.sin_port = hm_port;
@@ -182,11 +182,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);
+ (void) memcpy((char *) &sin.sin_addr, hp->h_addr, hp->h_length);
printf("Hostmanager stats: %s\n",hp->h_name);
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = STAT;
notice.z_port = 0;
notice.z_class = HM_STAT_CLASS;
@@ -272,7 +272,7 @@ srv_stat(host)
struct sigaction sa;
#endif
- _BZERO((char *) &sin,sizeof(struct sockaddr_in));
+ (void) memset((char *) &sin, 0, sizeof(struct sockaddr_in));
sin.sin_port = srv_port;
@@ -287,11 +287,11 @@ srv_stat(host)
fprintf(stderr,"Unknown host: %s\n",host);
exit(-1);
}
- _BCOPY(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
+ (void) memcpy((char *) &sin.sin_addr, hp->h_addr, hp->h_length);
printf("Server stats: %s\n",hp->h_name);
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = UNSAFE;
notice.z_port = 0;
notice.z_class = ZEPHYR_ADMIN_CLASS;