diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-18 17:17:40 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2001-07-18 17:17:40 +0000 |
commit | 88531ef445aa4eb7becd660a5ab9bfd36e6a3dfd (patch) | |
tree | 64fa0ded704625e538896475ac837ea7a32eb6d4 /usr.bin/last/last.c | |
parent | 450182152042eb25ffa67fab097a6ca2071c8e61 (diff) |
-Wall cleanup
Diffstat (limited to 'usr.bin/last/last.c')
-rw-r--r-- | usr.bin/last/last.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index 383af2529b6..ff600aef89d 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -1,4 +1,4 @@ -/* $OpenBSD: last.c,v 1.15 2001/07/12 05:17:13 deraadt Exp $ */ +/* $OpenBSD: last.c,v 1.16 2001/07/18 17:17:39 pvalchev Exp $ */ /* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: last.c,v 1.15 2001/07/12 05:17:13 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: last.c,v 1.16 2001/07/18 17:17:39 pvalchev Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -293,7 +293,7 @@ wtmp() bp->ut_name, UT_LINESIZE, UT_LINESIZE, bp->ut_line, HOST_WIDTH, UT_HOSTSIZE, - bp->ut_host, bp->ut_time); + bp->ut_host, (long)bp->ut_time); } else { ct = ctime(&bp->ut_time); printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", @@ -321,7 +321,7 @@ wtmp() NAME_WIDTH, UT_NAMESIZE, bp->ut_name, UT_LINESIZE, UT_LINESIZE, bp->ut_line, HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, - bp->ut_time); + (long)bp->ut_time); } else { ct = ctime(&bp->ut_time); printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", @@ -360,7 +360,7 @@ wtmp() NAME_WIDTH, UT_NAMESIZE, bp->ut_name, UT_LINESIZE, UT_LINESIZE, bp->ut_line, HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, - bp->ut_time); + (long)bp->ut_time); } else { ct = ctime(&bp->ut_time); printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s ", @@ -378,7 +378,7 @@ wtmp() } else { if (seconds) printf("- %ld", - T->logout); + (long)T->logout); else printf("- %*.*s", timesize, timesize, @@ -386,7 +386,7 @@ wtmp() } delta = T->logout - bp->ut_time; if (seconds) - printf(" (%ld)\n", delta); + printf(" (%ld)\n", (long)delta); else { if (delta < SECSPERDAY) printf(" (%*.*s)\n", |