summaryrefslogtreecommitdiff
path: root/sbin/dumpfs/dumpfs.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 03:05:38 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 03:05:38 +0000
commit8cc477c7bddf7f6cd04ada7f1a56a2787b9ea2d8 (patch)
tree5d8227771e08b33f1e2dd8f2a261c7a4cf1d25c2 /sbin/dumpfs/dumpfs.c
parentc4b8e9d0e4a27223a07f7b7860f42182d4130018 (diff)
Use a time_t variable with ctime()
ok deraadt@
Diffstat (limited to 'sbin/dumpfs/dumpfs.c')
-rw-r--r--sbin/dumpfs/dumpfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index 86b7afe604d..9a9e2c3bc29 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumpfs.c,v 1.28 2011/02/28 00:12:19 halex Exp $ */
+/* $OpenBSD: dumpfs.c,v 1.29 2013/04/02 03:05:37 guenther Exp $ */
/*
* Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -344,7 +344,7 @@ dumpcg(const char *name, int fd, int c)
printf("magic\t%x\ttell\t%jx\ttime\t%s",
afs.fs_postblformat == FS_42POSTBLFMT ?
((struct ocg *)&acg)->cg_magic : acg.cg_magic,
- (intmax_t)cur, ctime(&acg.cg_time));
+ (intmax_t)cur, ctime(&cgtime));
printf("cgx\t%d\tncyl\t%d\tniblk\t%d\tndblk\t%d\n",
acg.cg_cgx, acg.cg_ncyl, acg.cg_niblk, acg.cg_ndblk);
break;