summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:56:35 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:56:35 +0000
commit948ed65c2d5d9ca21c1cfa047db55fc6022dc977 (patch)
treecc99221b96dade4410fde74c80846ace12c47611 /x2p
parent45ac9ec52cacc64288cd4550b4d33e455b35ab9d (diff)
downloadperl-948ed65c2d5d9ca21c1cfa047db55fc6022dc977.tar.gz
Zero() is not available in x2p (or, rather, some of its
implementations like memzero() might not be available.) p4raw-id: //depot/perl@10378
Diffstat (limited to 'x2p')
-rw-r--r--x2p/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x2p/hash.c b/x2p/hash.c
index a2a4f6b941..fa35ba6d16 100644
--- a/x2p/hash.c
+++ b/x2p/hash.c
@@ -137,7 +137,7 @@ hsplit(HASH *tb)
register HENT **oentry;
a = (HENT**) saferealloc((char*)tb->tbl_array, newsize * sizeof(HENT*));
- Zero(&a[oldsize], oldsize, HENT*); /* zero second half */
+ memset(&a[oldsize], 0, oldsize * sizeof(HENT*)); /* zero second half */
tb->tbl_max = --newsize;
tb->tbl_array = a;
@@ -171,7 +171,7 @@ hnew(void)
tb->tbl_fill = 0;
tb->tbl_max = 7;
hiterinit(tb); /* so each() will start off right */
- Zero(tb->tbl_array, 8, sizeof(HENT*));
+ memset(tb->tbl_array, 0, 8 * sizeof(HENT*));
return tb;
}