X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fbzero.c;h=44ad73da4d6e956cd012fc4de3ddc32b8a37f1ec;hb=5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2;hp=8874118698e4d826c4e86cc236746bce2d5d303a;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/bzero.c b/libiberty/bzero.c index 8874118698..44ad73da4d 100644 --- a/libiberty/bzero.c +++ b/libiberty/bzero.c @@ -12,14 +12,12 @@ is deprecated in favor of @code{memset}. */ +#include + +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); }