=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/last/last.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/last/last.c 2001/07/12 05:17:13 1.15 +++ src/usr.bin/last/last.c 2001/07/18 17:17:39 1.16 @@ -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 @@ #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 @@ -293,7 +293,7 @@ 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 @@ 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 @@ 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 @@ } else { if (seconds) printf("- %ld", - T->logout); + (long)T->logout); else printf("- %*.*s", timesize, timesize, @@ -386,7 +386,7 @@ } delta = T->logout - bp->ut_time; if (seconds) - printf(" (%ld)\n", delta); + printf(" (%ld)\n", (long)delta); else { if (delta < SECSPERDAY) printf(" (%*.*s)\n",