Whamcloud - gitweb
Interim update of the debian/changelog and the release notes
[tools/e2fsprogs.git] / e2fsck / iscan.c
index 8f4b255..7e1bbd3 100644 (file)
@@ -19,7 +19,9 @@
 #include <mntent.h>
 #endif
 #include <sys/ioctl.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 
 #include "et/com_err.h"
 #include "e2fsck.h"
@@ -53,6 +55,7 @@ static void PRS(int argc, char *argv[])
 #ifdef MTRACE
        extern void     *mallwatch;
 #endif
+       errcode_t       retval;
 
        setbuf(stdout, NULL);
        setbuf(stderr, NULL);
@@ -95,7 +98,7 @@ int main (int argc, char *argv[])
        int             exit_value = FSCK_OK;
        ext2_filsys     fs;
        ext2_ino_t      ino;
-       int     num_inodes = 0;
+       __u32   num_inodes = 0;
        struct ext2_inode inode;
        ext2_inode_scan scan;
        
@@ -132,7 +135,7 @@ int main (int argc, char *argv[])
        }
        
        print_resource_track(NULL, &global_rtrack);
-       printf(_("%d inodes scanned.\n"), num_inodes);
+       printf(_("%u inodes scanned.\n"), num_inodes);
        
        exit(0);
 }