mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 10:29:15 +00:00
Revert some casts I introduced.
Requested by: Bruce.
This commit is contained in:
parent
737e5e8da5
commit
57bd99e61c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28785
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: pr_time.c,v 1.9 1997/08/25 06:42:18 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -104,14 +104,14 @@ pr_idle(idle)
|
||||
/* If idle more than an hour, print as HH:MM. */
|
||||
else if (idle >= 3600)
|
||||
(void)printf(" %2d:%02d ",
|
||||
(int)idle / 3600, (int)(idle % 3600) / 60);
|
||||
idle / 3600, (idle % 3600) / 60);
|
||||
|
||||
else if (idle / 60 == 0)
|
||||
(void)printf(" - ");
|
||||
|
||||
/* Else print the minutes idle. */
|
||||
else
|
||||
(void)printf(" %2d ", (int)idle / 60);
|
||||
(void)printf(" %2d ", idle / 60);
|
||||
|
||||
return(0); /* not idle longer than 9 days */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user