From 422422383750d8b1536e16e5f696f502013f9687 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 14 Nov 2006 22:20:08 +0000 Subject: [PATCH] the bzero() function has been marked as depreciated for quite sometime in favor of using memset() with a value of 0 ... patch attached Mike Frysinger --- elf2flt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elf2flt.c b/elf2flt.c index 89e04db..17a8b69 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -1775,7 +1775,7 @@ static void write_zeroes (unsigned long num, FILE *stream) if (num > 0) { /* It'd be nice if we could just use fseek, but that doesn't seem to work for stdio output files. */ - bzero(zeroes, 1024); + memset(zeroes, 0x00, 1024); while (num > sizeof(zeroes)) { fwrite(zeroes, sizeof(zeroes), 1, stream); num -= sizeof(zeroes); @@ -2065,7 +2065,7 @@ int main(int argc, char *argv[]) | (compress ? (compress == 2 ? FLAT_FLAG_GZDATA : FLAT_FLAG_GZIP) : 0) ); hdr.build_date = htonl((unsigned long)time(NULL)); - bzero(hdr.filler, sizeof(hdr.filler)); + memset(hdr.filler, 0x00, sizeof(hdr.filler)); for (i=0; i