Constify and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
This commit is contained in:
parent
d1d080f810
commit
dfe60c7914
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78713
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= ac
|
||||
WARNS?= 2
|
||||
MAN= ac.8
|
||||
|
||||
# If "CONSOLE_TTY" is not defined, this program is compatible with the
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user