diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-02 20:28:00 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-02 20:28:00 +0000 |
commit | 943c390afbced1e5f3f4c7018127fa19ecff8410 (patch) | |
tree | ccbc1d31f63aab96feed83ed20694f25d407b688 /libiberty/bzero.c | |
parent | 8e1547dab871e31b3a75cc1c172b47728ed8e210 (diff) | |
download | gcc-943c390afbced1e5f3f4c7018127fa19ecff8410.tar.gz |
* bcmp.c: Fix warnings and implement using memcmp.
* bcopy.c: Fix warnings.
* bzero.c: Fix warnings and implement using memset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97457 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/bzero.c')
-rw-r--r-- | libiberty/bzero.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/bzero.c b/libiberty/bzero.c index 1f52d2d3098..44ad73da4d6 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); } |