Constify and set WARNS=2.

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

View File

@ -1,6 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PROG= ac PROG= ac
WARNS?= 2
MAN= ac.8 MAN= ac.8
# If "CONSOLE_TTY" is not defined, this program is compatible with the # 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 *)); int ac __P((FILE *));
struct tty_list *add_tty __P((char *)); struct tty_list *add_tty __P((char *));
int do_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_in __P((struct utmp_list *, struct utmp *));
struct utmp_list *log_out __P((struct utmp_list *, struct utmp *)); struct utmp_list *log_out __P((struct utmp_list *, struct utmp *));
int on_console __P((struct utmp_list *)); 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 *, void show_today __P((struct user_list *, struct utmp_list *,
time_t)); time_t));
void show_users __P((struct user_list *)); void show_users __P((struct user_list *));
@ -103,7 +103,7 @@ void usage __P((void));
*/ */
FILE * FILE *
file(name) file(name)
char *name; const char *name;
{ {
FILE *fp; FILE *fp;
@ -293,7 +293,7 @@ main(argc, argv)
*/ */
void void
show(name, secs) show(name, secs)
char *name; const char *name;
time_t secs; time_t secs;
{ {
(void)printf("\t%-*s %8.2f\n", UT_NAMESIZE, name, (void)printf("\t%-*s %8.2f\n", UT_NAMESIZE, name,