diff options
author | bde <bde@FreeBSD.org> | 1998-10-17 13:02:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-10-17 13:02:46 +0000 |
commit | a3b0bb68a6cdea1a82a0013fc4fdac669a8184df (patch) | |
tree | 3bd790900a0796fd95ec391c3e5037908af1bf35 /sbin | |
parent | 8b98004d10907515942ffe12082176df6353b7c8 (diff) | |
download | FreeBSD-src-a3b0bb68a6cdea1a82a0013fc4fdac669a8184df.zip FreeBSD-src-a3b0bb68a6cdea1a82a0013fc4fdac669a8184df.tar.gz |
Don't assume that time_t is long.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/vinum/list.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 4080748..f4520f1 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -35,7 +35,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: list.c,v 1.12 1998/08/10 05:15:06 grog Exp grog $ + * $Id: list.c,v 1.1.1.1 1998/09/16 05:57:36 grog Exp $ */ #include <ctype.h> @@ -124,17 +124,21 @@ vinum_li(int object, enum objecttype type) void vinum_ldi(int driveno, int recurse) { + time_t t; + get_drive_info(&drive, driveno); if (drive.state != drive_unallocated) { if (verbose) { printf("Drive %s:\tDevice %s\n", drive.label.name, drive.devicename); + t = drive.label.date_of_birth.tv_sec; printf("\t\tCreated on %s at %s", drive.label.sysname, - ctime(&drive.label.date_of_birth.tv_sec)); + ctime(&t)); + t = drive.label.last_update.tv_sec; printf("\t\tConfig last updated %s", /* care: \n at end */ - ctime(&drive.label.last_update.tv_sec)); + ctime(&t)); printf("\t\tSize: %16qd bytes (%qd MB)\n\t\tUsed: %16qd bytes (%qd MB)\n" "\t\tAvailable: %11qd bytes (%d MB)\n", drive.label.drive_size, /* bytes used */ |