summaryrefslogtreecommitdiffstats
path: root/misc/findsuper.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/findsuper.c')
-rw-r--r--misc/findsuper.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/misc/findsuper.c b/misc/findsuper.c
index 7e78c1f..8f275ea 100644
--- a/misc/findsuper.c
+++ b/misc/findsuper.c
@@ -81,8 +81,6 @@
*
*/
-#define _FILE_OFFSET_BITS 64
-
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
@@ -230,10 +228,9 @@ int main(int argc, char *argv[])
WHY("free_inodes_count > inodes_count (%u > %u)\n",
ext2.s_free_inodes_count, ext2.s_inodes_count);
- if (ext2.s_mkfs_time != 0)
- tm = ext2.s_mkfs_time;
- else
- tm = ext2.s_mtime;
+ tm = ext2fs_get_tstamp(ext2, s_mkfs_time);
+ if (tm == 0)
+ tm = ext2fs_get_tstamp(ext2, s_mtime);
s = ctime(&tm);
s[24] = 0;
bsize = 1 << (ext2.s_log_block_size + 10);