aboutsummaryrefslogtreecommitdiff
path: root/libiberty/bzero.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/bzero.c')
-rw-r--r--libiberty/bzero.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/bzero.c b/libiberty/bzero.c
index 1f52d2d..44ad73d 100644
--- a/libiberty/bzero.c
+++ b/libiberty/bzero.c
@@ -12,12 +12,12 @@ is deprecated in favor of @code{memset}.
*/
+#include <stddef.h>
+
+extern void *memset(void *, int, size_t);
void
-bzero (char *to, int count)
+bzero (void *to, size_t count)
{
- while (count-- > 0)
- {
- *to++ = 0;
- }
+ memset (to, 0, count);
}