Date: Sat, 23 Jun 2001 16:03:04 -0400 (EDT) From: Mike Barcroft <mike@q9media.com> To: audit@FreeBSD.org Subject: src/usr.sbin/ac patch Message-ID: <200106232003.f5NK34F89545@coffee.q9media.com>
next in thread | raw e-mail | index | archive | help
I would appreciate it if someone would commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/ac.20010623.patch Best regards, Mike Barcroft ----------------------------------------------------------------------- ac.20010623.patch o Silence compiler warnings and set WARNS?=2. Index: ac/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/ac/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- ac/Makefile 2001/03/26 14:39:16 1.6 +++ ac/Makefile 2001/06/23 19:39:18 @@ -1,6 +1,7 @@ # $FreeBSD: src/usr.sbin/ac/Makefile,v 1.6 2001/03/26 14:39:16 ru Exp $ PROG= ac +WARNS?= 2 MAN= ac.8 # If "CONSOLE_TTY" is not defined, this program is compatible with the Index: ac/ac.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/ac/ac.c,v retrieving revision 1.16 diff -u -r1.16 ac.c --- ac/ac.c 2001/03/21 13:41:03 1.16 +++ ac/ac.c 2001/06/23 19:39:19 @@ -87,11 +87,11 @@ 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 @@ */ FILE * file(name) - char *name; + const char *name; { FILE *fp; @@ -293,7 +293,7 @@ */ void show(name, secs) - char *name; + const char *name; time_t secs; { (void)printf("\t%-*s %8.2f\n", UT_NAMESIZE, name, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106232003.f5NK34F89545>