diff options
author | Richard Basch <probe@mit.edu> | 1993-09-24 12:33:29 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-09-24 12:33:29 +0000 |
commit | 187aa3316fd2e00c80f5770802fc37a0417abf4b (patch) | |
tree | 45df789486339faddf6283575f98550c55ae23b2 | |
parent | 5187f7f8ebc80dd2c821a00fd02b5c1c2ed77502 (diff) |
Changed bcopy/bzero to _BCOPY/_BZERO macros (defined in <zephyr/zephyr_conf.h>
-rw-r--r-- | clients/zstat/zstat.c | 14 | ||||
-rw-r--r-- | clients/zwrite/zwrite.c | 2 |
2 files changed, 8 insertions, 8 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 *)¬ice, sizeof(notice)); + (void) _BZERO((char *)¬ice, 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 *)¬ice, sizeof(notice)); + (void) _BZERO((char *)¬ice, sizeof(notice)); notice.z_kind = UNSAFE; notice.z_port = 0; notice.z_class = ZEPHYR_ADMIN_CLASS; diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index 20dfb28..51f9c9a 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -285,7 +285,7 @@ main(argc, argv) exit(1); } message = realloc(message, (unsigned)(msgsize+nchars)); - bcopy(bfr, message+msgsize, nchars); + _BCOPY(bfr, message+msgsize, nchars); msgsize += nchars; } /* end of msg */ |