summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/cacheq.c2
-rw-r--r--libshouldbeinlibc/idvec.c2
-rw-r--r--libshouldbeinlibc/ugids.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libshouldbeinlibc/cacheq.c b/libshouldbeinlibc/cacheq.c
index c1be59c0..5912f84c 100644
--- a/libshouldbeinlibc/cacheq.c
+++ b/libshouldbeinlibc/cacheq.c
@@ -97,7 +97,7 @@ cacheq_set_length (struct cacheq *cq, int length)
if (fh && th)
bcopy (fh, th, esz); /* Copy the bits in a moved entry. */
else if (th)
- bzero (th, esz); /* Zero the bits in a new entry. */
+ memset (th, 0, esz); /* Zero the bits in a new entry. */
if (th)
/* Fixup headers. */
diff --git a/libshouldbeinlibc/idvec.c b/libshouldbeinlibc/idvec.c
index 7fdee104..c60fc9fb 100644
--- a/libshouldbeinlibc/idvec.c
+++ b/libshouldbeinlibc/idvec.c
@@ -115,7 +115,7 @@ idvec_insert (struct idvec *idvec, unsigned pos, uid_t id)
if (pos < num)
bcopy (ids + pos, ids + pos + 1, (num - pos) * sizeof (uid_t));
else if (pos > num)
- bzero (ids + num, (pos - num) * sizeof (uid_t));
+ memset (ids + num, 0, (pos - num) * sizeof(uid_t));
ids[pos] = id;
idvec->num = new_num;
}
diff --git a/libshouldbeinlibc/ugids.c b/libshouldbeinlibc/ugids.c
index db1ce3c8..07a11fe2 100644
--- a/libshouldbeinlibc/ugids.c
+++ b/libshouldbeinlibc/ugids.c
@@ -30,7 +30,7 @@ make_ugids ()
{
struct ugids *u = malloc (sizeof (struct ugids));
if (u)
- bzero (u, sizeof *u);
+ memset (u, 0, sizeof *u);
return u;
}