summaryrefslogtreecommitdiff
path: root/x2p/hash.c
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-06-01 13:00:29 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:44:48 +0000
commit45ac9ec52cacc64288cd4550b4d33e455b35ab9d (patch)
tree0f54e945feb7d22f59a0d057363e24eed1499f4c /x2p/hash.c
parent9d1d55b5374182f02a1e09f458fc91bfe389e6cc (diff)
downloadperl-45ac9ec52cacc64288cd4550b4d33e455b35ab9d.tar.gz
bzero -> memset
Message-ID: <20010601120029.F29027@blackrider.blackstar.co.uk> (But use Zero() instead of memset.) p4raw-id: //depot/perl@10377
Diffstat (limited to 'x2p/hash.c')
-rw-r--r--x2p/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x2p/hash.c b/x2p/hash.c
index a266403efe..a2a4f6b941 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*));
- bzero((char*)&a[oldsize], oldsize * sizeof(HENT*)); /* zero second half */
+ Zero(&a[oldsize], oldsize, 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 */
- bzero((char*)tb->tbl_array, 8 * sizeof(HENT*));
+ Zero(tb->tbl_array, 8, sizeof(HENT*));
return tb;
}