summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:22:56 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:22:56 +0000
commit74c7c73a03385cc870cc0e3318f028683743e2b9 (patch)
tree06428728a0e4066c8b8535560d1462ca8f04ead2 /lib
parentf87161de62e8755138143b602a7c7fe1005b3ecc (diff)
Changed bzero to memset [ANSI]
Diffstat (limited to 'lib')
-rw-r--r--lib/ZAsyncLocate.c4
-rw-r--r--lib/ZLocations.c2
-rw-r--r--lib/ZParseNot.c2
-rw-r--r--lib/ZRetSubs.c4
-rw-r--r--lib/ZSubs.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/ZAsyncLocate.c b/lib/ZAsyncLocate.c
index fe6b444..37f61fa 100644
--- a/lib/ZAsyncLocate.c
+++ b/lib/ZAsyncLocate.c
@@ -31,7 +31,7 @@ Code_t ZRequestLocations(user, zald, kind, auth)
if ((retval = ZOpenPort((u_short *)0)) != ZERR_NONE)
return (retval);
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = kind;
notice.z_port = __Zephyr_port;
notice.z_class = LOCATE_CLASS;
@@ -166,5 +166,5 @@ void ZFreeALD(zald)
if (zald->user) free(zald->user);
if (zald->version) free(zald->version);
- _BZERO(zald, sizeof(*zald));
+ (void) memset(zald, 0, sizeof(*zald));
}
diff --git a/lib/ZLocations.c b/lib/ZLocations.c
index 536d470..7701a8d 100644
--- a/lib/ZLocations.c
+++ b/lib/ZLocations.c
@@ -70,7 +70,7 @@ Z_SendLocation(class, opcode, auth, format)
struct hostent *hent;
short wg_port = ZGetWGPort();
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = ACKED;
notice.z_port = (u_short) ((wg_port == -1) ? 0 : wg_port);
notice.z_class = class;
diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c
index 3bed416..6c47dc7 100644
--- a/lib/ZParseNot.c
+++ b/lib/ZParseNot.c
@@ -99,7 +99,7 @@ Code_t ZParseNotice(buffer, len, notice)
#define BAD goto badpkt
#endif
- _BZERO((char *)notice, sizeof(ZNotice_t));
+ (void) memset((char *)notice, 0, sizeof(ZNotice_t));
ptr = buffer;
end = buffer+len;
diff --git a/lib/ZRetSubs.c b/lib/ZRetSubs.c
index dfe9e27..1366b4c 100644
--- a/lib/ZRetSubs.c
+++ b/lib/ZRetSubs.c
@@ -38,7 +38,7 @@ Code_t ZRetrieveSubscriptions(port,nsubs)
sizeof(u_short))) != ZERR_NONE)
return (retval);
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_message = asciiport;
notice.z_message_len = strlen(asciiport)+1;
notice.z_opcode = CLIENT_GIMMESUBS;
@@ -51,7 +51,7 @@ Code_t ZRetrieveDefaultSubscriptions(nsubs)
{
ZNotice_t notice;
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_message = (char *) 0;
notice.z_message_len = 0;
notice.z_opcode = CLIENT_GIMMEDEFS;
diff --git a/lib/ZSubs.c b/lib/ZSubs.c
index b9196f1..99939fd 100644
--- a/lib/ZSubs.c
+++ b/lib/ZSubs.c
@@ -83,7 +83,7 @@ Z_Subscriptions(sublist, nitems, port, opcode, authit)
if (!list)
return (ENOMEM);
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = ACKED;
notice.z_port = port;
notice.z_class = ZEPHYR_CTL_CLASS;