summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-18 16:41:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-18 16:41:59 +0000
commit624700f210b81fab45216f2f4af2a98473bce2bc (patch)
tree000897c809965582aed5d826c3cb41b3f75f35e3
parent60ffc1a1e705051de71d832be93d0c795a31d893 (diff)
use ufs_daddr_t; another time_t cleanup
-rw-r--r--sbin/fsck/inode.c11
-rw-r--r--sbin/fsck_ffs/inode.c11
2 files changed, 12 insertions, 10 deletions
diff --git a/sbin/fsck/inode.c b/sbin/fsck/inode.c
index 54a4130b3e5..d7c71139228 100644
--- a/sbin/fsck/inode.c
+++ b/sbin/fsck/inode.c
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.16 1995/12/14 22:17:26 thorpej Exp $ */
+/* $NetBSD: inode.c,v 1.17 1995/12/17 06:03:36 thorpej Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)inode.c 8.5 (Berkeley) 2/8/95";
#else
-static char rcsid[] = "$NetBSD: inode.c,v 1.16 1995/12/14 22:17:26 thorpej Exp $";
+static char rcsid[] = "$NetBSD: inode.c,v 1.17 1995/12/17 06:03:36 thorpej Exp $";
#endif
#endif /* not lint */
@@ -65,7 +65,7 @@ ckinode(dp, idesc)
struct dinode *dp;
register struct inodesc *idesc;
{
- register daddr_t *ap;
+ register ufs_daddr_t *ap;
long ret, n, ndb, offset;
struct dinode dino;
quad_t remsize, sizepb;
@@ -452,7 +452,7 @@ pinode(ino)
register struct dinode *dp;
register char *p;
struct passwd *pw;
- char *ctime();
+ time_t t;
printf(" I=%lu ", ino);
if (ino < ROOTINO || ino > maxino)
@@ -469,7 +469,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]);
}
diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c
index 54a4130b3e5..d7c71139228 100644
--- a/sbin/fsck_ffs/inode.c
+++ b/sbin/fsck_ffs/inode.c
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.16 1995/12/14 22:17:26 thorpej Exp $ */
+/* $NetBSD: inode.c,v 1.17 1995/12/17 06:03:36 thorpej Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)inode.c 8.5 (Berkeley) 2/8/95";
#else
-static char rcsid[] = "$NetBSD: inode.c,v 1.16 1995/12/14 22:17:26 thorpej Exp $";
+static char rcsid[] = "$NetBSD: inode.c,v 1.17 1995/12/17 06:03:36 thorpej Exp $";
#endif
#endif /* not lint */
@@ -65,7 +65,7 @@ ckinode(dp, idesc)
struct dinode *dp;
register struct inodesc *idesc;
{
- register daddr_t *ap;
+ register ufs_daddr_t *ap;
long ret, n, ndb, offset;
struct dinode dino;
quad_t remsize, sizepb;
@@ -452,7 +452,7 @@ pinode(ino)
register struct dinode *dp;
register char *p;
struct passwd *pw;
- char *ctime();
+ time_t t;
printf(" I=%lu ", ino);
if (ino < ROOTINO || ino > maxino)
@@ -469,7 +469,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]);
}