projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MIPS] When calculating a relocation using an undefined weak symbol don't check for...
[platform/upstream/binutils.git]
/
libiberty
/
bzero.c
diff --git
a/libiberty/bzero.c
b/libiberty/bzero.c
index
8874118
..
44ad73d
100644
(file)
--- a/
libiberty/bzero.c
+++ b/
libiberty/bzero.c
@@
-12,14
+12,12
@@
is deprecated in favor of @code{memset}.
*/
+#include <stddef.h>
+
+extern void *memset(void *, int, size_t);
void
-bzero (to, count)
- char *to;
- int count;
+bzero (void *to, size_t count)
{
- while (count-- > 0)
- {
- *to++ = 0;
- }
+ memset (to, 0, count);
}