diff options
author | Richard Basch <probe@mit.edu> | 1993-11-19 10:33:41 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-11-19 10:33:41 +0000 |
commit | 04c5375588977a23555482fa17b5fb07d5a31480 (patch) | |
tree | 615b2a39746d3c07a834bc0081e835eff66aa71e /clients/zstat | |
parent | 2f93f7ef87c258a614cde36b037131cb8bab1fce (diff) |
Changed bzero/bcopy to memset/memcpy [ANSI]
Diffstat (limited to 'clients/zstat')
-rw-r--r-- | clients/zstat/zstat.c | 12 |
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 *)¬ice, sizeof(notice)); + (void) memset((char *)¬ice, 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 *)¬ice, sizeof(notice)); + (void) memset((char *)¬ice, 0, sizeof(notice)); notice.z_kind = UNSAFE; notice.z_port = 0; notice.z_class = ZEPHYR_ADMIN_CLASS; |