Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/accton Kill __P(), use ANSI function declarations; ...



details:   https://anonhg.NetBSD.org/src/rev/365d57d9ec2f
branches:  trunk
changeset: 574878:365d57d9ec2f
user:      xtraeme <xtraeme%NetBSD.org@localhost>
date:      Wed Mar 16 01:43:06 2005 +0000

description:
Kill __P(), use ANSI function declarations; WARNS=3

diffstat:

 usr.sbin/accton/Makefile |   3 ++-
 usr.sbin/accton/accton.c |  13 +++++--------
 2 files changed, 7 insertions(+), 9 deletions(-)

diffs (56 lines):

diff -r 2825a59b8d43 -r 365d57d9ec2f usr.sbin/accton/Makefile
--- a/usr.sbin/accton/Makefile  Wed Mar 16 01:41:20 2005 +0000
+++ b/usr.sbin/accton/Makefile  Wed Mar 16 01:43:06 2005 +0000
@@ -1,7 +1,8 @@
 #      from: # @(#)Makefile    8.1 (Berkeley) 6/6/93
-#      $NetBSD: Makefile,v 1.9 1997/10/17 04:53:19 lukem Exp $
+#      $NetBSD: Makefile,v 1.10 2005/03/16 01:43:06 xtraeme Exp $
 
 PROG=  accton
 MAN=   accton.8
+WARNS=  3
 
 .include <bsd.prog.mk>
diff -r 2825a59b8d43 -r 365d57d9ec2f usr.sbin/accton/accton.c
--- a/usr.sbin/accton/accton.c  Wed Mar 16 01:41:20 2005 +0000
+++ b/usr.sbin/accton/accton.c  Wed Mar 16 01:43:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: accton.c,v 1.9 2003/08/07 11:25:11 agc Exp $   */
+/*     $NetBSD: accton.c,v 1.10 2005/03/16 01:43:06 xtraeme Exp $      */
 
 /*
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)accton.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: accton.c,v 1.9 2003/08/07 11:25:11 agc Exp $");
+__RCSID("$NetBSD: accton.c,v 1.10 2005/03/16 01:43:06 xtraeme Exp $");
 #endif
 #endif /* not lint */
 
@@ -51,13 +51,10 @@
 #include <stdio.h>
 #include <string.h>
 
-int    main __P((int, char **));
-void   usage __P((void));
+void   usage(void);
 
 int
-main(argc, argv)
-       int argc;
-       char *argv[];
+main(int argc, char **argv)
 {
        int ch;
 
@@ -86,7 +83,7 @@
 }
 
 void
-usage()
+usage(void)
 {
 
        (void)fprintf(stderr, "usage: %s [file]\n", getprogname());



Home | Main Index | Thread Index | Old Index