From e0267986934b9cf6f6c130a7779c999dff096804 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Sun, 4 Jan 2004 10:48:34 +0000 Subject: [PATCH] Fix compilation with old gcc versions. --- CHANGES | 8 +++++++- dump/main.c | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 029d725..bf54202 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,10 @@ -$Id: CHANGES,v 1.235 2003/12/21 09:51:29 stelian Exp $ +$Id: CHANGES,v 1.236 2004/01/04 10:48:34 stelian Exp $ + +Changes between versions 0.4b35 and 0.4b36 (released ?????????????????) +======================================================================= + +1. Fixed dump compilation with old gcc versions. Thanks to + Mike Castle for the patch. Changes between versions 0.4b34 and 0.4b35 (released December 21, 2003) ======================================================================= diff --git a/dump/main.c b/dump/main.c index 32db26d..a9a671d 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.88 2003/11/22 16:52:16 stelian Exp $"; + "$Id: main.c,v 1.89 2004/01/04 10:48:35 stelian Exp $"; #endif /* not lint */ #include @@ -1276,13 +1276,13 @@ do_exclude_ino(dump_ino_t ino, const char *reason) /* check for enough mem; initialize */ if ((ino/8 + 1) > iexclude_bitmap_bytes) { if (iexclude_bitmap_bytes == 0) { + unsigned int j; iexclude_bitmap_bytes = 2 * (ino/8 + 1); iexclude_bitmap = (char*) malloc(iexclude_bitmap_bytes); if (iexclude_bitmap == NULL) { msg("allocating memory failed\n"); exit(X_STARTUP); } - unsigned int j; for (j = 0; j < iexclude_bitmap_bytes; j++) iexclude_bitmap[j] = 0; } -- 2.39.5