]> git.wh0rd.org Git - dump.git/commitdiff
Fix compilation with old gcc versions.
authorStelian Pop <stelian@popies.net>
Sun, 4 Jan 2004 10:48:34 +0000 (10:48 +0000)
committerStelian Pop <stelian@popies.net>
Sun, 4 Jan 2004 10:48:34 +0000 (10:48 +0000)
CHANGES
dump/main.c

diff --git a/CHANGES b/CHANGES
index 029d72583f225859e2bc3d7a26c17c71baa5949b..bf54202ff78d90987231f85cdd151f5731b1be8d 100644 (file)
--- 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 <dalgoda@users.sourceforge.net> for the patch.
 
 Changes between versions 0.4b34 and 0.4b35 (released December 21, 2003)
 =======================================================================
index 32db26dc02516bccc10f12d9a288d1c2ccb4e7a8..a9a671d0d5b8fe2006cfc51bb83c6a573c64084e 100644 (file)
@@ -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 <config.h>
@@ -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;
                }