-Wall cleanup.
This commit is contained in:
parent
0f12aa9ffd
commit
8109e672e4
@ -36,7 +36,7 @@
|
|||||||
static char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94";
|
static char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: pr_time.c,v 1.9 1997/08/25 06:42:18 charnier Exp $";
|
"$Id: pr_time.c,v 1.10 1997/08/26 06:59:34 charnier Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -104,14 +104,14 @@ pr_idle(idle)
|
|||||||
/* If idle more than an hour, print as HH:MM. */
|
/* If idle more than an hour, print as HH:MM. */
|
||||||
else if (idle >= 3600)
|
else if (idle >= 3600)
|
||||||
(void)printf(" %2d:%02d ",
|
(void)printf(" %2d:%02d ",
|
||||||
idle / 3600, (idle % 3600) / 60);
|
(int)(idle / 3600), (int)((idle % 3600) / 60));
|
||||||
|
|
||||||
else if (idle / 60 == 0)
|
else if (idle / 60 == 0)
|
||||||
(void)printf(" - ");
|
(void)printf(" - ");
|
||||||
|
|
||||||
/* Else print the minutes idle. */
|
/* Else print the minutes idle. */
|
||||||
else
|
else
|
||||||
(void)printf(" %2d ", idle / 60);
|
(void)printf(" %2d ", (int)(idle / 60));
|
||||||
|
|
||||||
return(0); /* not idle longer than 9 days */
|
return(0); /* not idle longer than 9 days */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user