From a3b0bb68a6cdea1a82a0013fc4fdac669a8184df Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 17 Oct 1998 13:02:46 +0000 Subject: Don't assume that time_t is long. --- sbin/vinum/list.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sbin') 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 @@ -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 */ -- cgit v1.1