From owner-freebsd-audit Sat Jun 23 12:50:28 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 6343537B401 for ; Sat, 23 Jun 2001 12:50:25 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f5NK34F89545; Sat, 23 Jun 2001 16:03:04 -0400 (EDT) (envelope-from mike) Date: Sat, 23 Jun 2001 16:03:04 -0400 (EDT) Message-Id: <200106232003.f5NK34F89545@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/usr.sbin/ac patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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