diff options
author | peter <peter@FreeBSD.org> | 2002-11-17 23:50:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-11-17 23:50:41 +0000 |
commit | 1b82dc8de943bca69b32a43341988477d8b41edd (patch) | |
tree | 60b423262bbca7bcace02069faf1abe2ef20e811 /sbin/dumpfs | |
parent | 570525a6c74ab8a435767aa2e2c75d708670c27f (diff) | |
download | FreeBSD-src-1b82dc8de943bca69b32a43341988477d8b41edd.zip FreeBSD-src-1b82dc8de943bca69b32a43341988477d8b41edd.tar.gz |
Deal with the possibility that time_t != int32_t. Otherwise ia64 thought
the fs_old_size was the half part of fs_old_time etc.
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r-- | sbin/dumpfs/dumpfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index 6e0c955..f0c21d3 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -137,8 +137,9 @@ dumpfs(const char *name) break; case 1: fssize = afs.fs_old_size; + time = afs.fs_old_time; printf("magic\t%x (UFS1)\ttime\t%s", - afs.fs_magic, ctime(&afs.fs_old_time)); + afs.fs_magic, ctime(&time)); printf("id\t[ %x %x ]\n", afs.fs_id[0], afs.fs_id[1]); printf("ncg\t%d\tsize\t%qd\tblocks\t%d\n", afs.fs_ncg, fssize, afs.fs_dsize); @@ -273,8 +274,9 @@ dumpcg(int c) acg.cg_cgx, acg.cg_ndblk, acg.cg_niblk, acg.cg_initediblk); break; case 1: + time = acg.cg_old_time; printf("magic\t%x\ttell\t%qx\ttime\t%s", - acg.cg_magic, cur, ctime(&acg.cg_old_time)); + acg.cg_magic, cur, ctime(&time)); printf("cgx\t%d\tncyl\t%d\tniblk\t%d\tndblk\t%d\n", acg.cg_cgx, acg.cg_old_ncyl, acg.cg_old_niblk, acg.cg_ndblk); |