summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-13 17:56:25 +0000
committerbde <bde@FreeBSD.org>1997-03-13 17:56:25 +0000
commit200c003cab546fab56299d18515cc4c8c54e72e2 (patch)
tree6c65033dbfa0b026ba857c1407184b5bc34582e6 /sbin/fsdb
parent463d2ef96180885e06f68ae2ebb934f92011686c (diff)
downloadFreeBSD-src-200c003cab546fab56299d18515cc4c8c54e72e2.zip
FreeBSD-src-200c003cab546fab56299d18515cc4c8c54e72e2.tar.gz
Fixed bogus casts from (int32_t *) to (time_t *).
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdbutil.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c
index 3251644..3c23fd6 100644
--- a/sbin/fsdb/fsdbutil.c
+++ b/sbin/fsdb/fsdbutil.c
@@ -29,7 +29,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: fsdbutil.c,v 1.5 1997/03/13 12:44:53 peter Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -97,6 +97,7 @@ printstat(cp, inum, dp)
struct group *grp;
struct passwd *pw;
char *p;
+ time_t t;
printf("%s: ", cp);
switch (dp->di_mode & IFMT) {
@@ -130,13 +131,16 @@ printstat(cp, inum, dp)
break;
}
printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
- p = ctime((time_t *)&dp->di_mtime);
+ t = dp->di_mtime;
+ p = ctime(&t);
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
dp->di_mtimensec);
- p = ctime((time_t *)&dp->di_ctime);
+ t = dp->di_ctime;
+ p = ctime(&t);
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
dp->di_ctimensec);
- p = ctime((time_t *)&dp->di_atime);
+ t = dp->di_atime;
+ p = ctime(&t);
printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
dp->di_atimensec);
OpenPOWER on IntegriCloud