Constify and set WARNS=2.

Submitted by:	Mike Barcroft <mike@q9media.com>
Reviewed by:	md5(1)
This commit is contained in:
Dima Dorfman 2001-06-24 18:41:30 +00:00
parent d1d080f810
commit dfe60c7914
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= ac
WARNS?= 2
MAN= ac.8
# If "CONSOLE_TTY" is not defined, this program is compatible with the

View File

@ -87,11 +87,11 @@ int main __P((int, char **));
int ac __P((FILE *));
struct tty_list *add_tty __P((char *));
int do_tty __P((char *));
FILE *file __P((char *));
FILE *file __P((const char *));
struct utmp_list *log_in __P((struct utmp_list *, struct utmp *));
struct utmp_list *log_out __P((struct utmp_list *, struct utmp *));
int on_console __P((struct utmp_list *));
void show __P((char *, time_t));
void show __P((const char *, time_t));
void show_today __P((struct user_list *, struct utmp_list *,
time_t));
void show_users __P((struct user_list *));
@ -103,7 +103,7 @@ void usage __P((void));
*/
FILE *
file(name)
char *name;
const char *name;
{
FILE *fp;
@ -293,7 +293,7 @@ main(argc, argv)
*/
void
show(name, secs)
char *name;
const char *name;
time_t secs;
{
(void)printf("\t%-*s %8.2f\n", UT_NAMESIZE, name,