aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ifs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-03-18 20:02:18 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-03-18 20:02:18 +0000
commit10e1c2d28a8fa207be3aa31b7a5b0bbb7034a20b (patch)
tree413e8857b628d7e27e71c76e90c1adc87709ced4 /sbin/fsck_ifs
parentaef772c06b517d1cd08d16d426e711b8d9839611 (diff)
downloadsrc-10e1c2d28a8fa207be3aa31b7a5b0bbb7034a20b.tar.gz
src-10e1c2d28a8fa207be3aa31b7a5b0bbb7034a20b.zip
patch up some "int *" vs. "time_t *" (long) mismatches. They could be
nasty if sizeof(int) != sizeof(long).
Notes
Notes: svn path=/head/; revision=24002
Diffstat (limited to 'sbin/fsck_ifs')
-rw-r--r--sbin/fsck_ifs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/fsck_ifs/inode.c b/sbin/fsck_ifs/inode.c
index c4217544865b..c16571c1636f 100644
--- a/sbin/fsck_ifs/inode.c
+++ b/sbin/fsck_ifs/inode.c
@@ -500,6 +500,7 @@ pinode(ino)
register struct dinode *dp;
register char *p;
struct passwd *pw;
+ time_t t;
printf(" I=%lu ", ino);
if (ino < ROOTINO || ino > maxino)
@@ -514,7 +515,8 @@ pinode(ino)
if (preen)
printf("%s: ", cdevname);
printf("SIZE=%qu ", dp->di_size);
- p = ctime(&dp->di_mtime);
+ t = dp->di_mtime;
+ p = ctime(&t);
printf("MTIME=%12.12s %4.4s ", &p[4], &p[20]);
}
@@ -585,7 +587,7 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
- (void)time(&dp->di_atime);
+ dp->di_atime = time(NULL);
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);