aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-07-11 22:50:36 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-07-11 22:50:36 +0000
commit39d4ee3fee4f4fc0825727d33e14450dee41b0a5 (patch)
tree028466b04116420cb680d86d73be95e8e6e4a8ba /usr.sbin
parent5e3da64ee9dd7ccca2aff401ebd8604ddc848417 (diff)
downloadsrc-39d4ee3fee4f4fc0825727d33e14450dee41b0a5.tar.gz
src-39d4ee3fee4f4fc0825727d33e14450dee41b0a5.zip
WARNS=2, de-__P()
Notes
Notes: svn path=/head/; revision=99835
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/slstat/Makefile1
-rw-r--r--usr.sbin/slstat/slstat.c12
2 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/slstat/Makefile b/usr.sbin/slstat/Makefile
index ff0b9cacc504..09556eadf0c0 100644
--- a/usr.sbin/slstat/Makefile
+++ b/usr.sbin/slstat/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= slstat
+WARNS?= 2
MAN= slstat.8
.include <bsd.prog.mk>
diff --git a/usr.sbin/slstat/slstat.c b/usr.sbin/slstat/slstat.c
index ac1fa83e7107..3b3c52d06df2 100644
--- a/usr.sbin/slstat/slstat.c
+++ b/usr.sbin/slstat/slstat.c
@@ -50,9 +50,9 @@ static const char rcsid[] =
#include <net/slcompress.h>
#include <net/if_slvar.h>
-static void usage __P((void));
-static void intpr __P((void));
-static void catchalarm __P((int));
+static void usage(void);
+static void intpr(void);
+static void catchalarm(int);
#define INTERFACE_PREFIX "sl%d"
char interface[IFNAMSIZ];
@@ -64,9 +64,7 @@ int unit;
int name[6];
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int c, i;
size_t len;
@@ -241,7 +239,7 @@ intpr()
*/
static void
catchalarm(sig)
- int sig;
+ int sig __unused;
{
signalled = 1;
}