summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-07-14 18:23:22 +0000
committeralfred <alfred@FreeBSD.org>2002-07-14 18:23:22 +0000
commitc288b01e7dc244369bfc3e9378588bc005deca52 (patch)
tree826dbfc96c991b197cc2c88576fe83ac45542b9f
parentadf0fb9f4e0176992d643bfe8da94a2d54f48ec0 (diff)
downloadFreeBSD-src-c288b01e7dc244369bfc3e9378588bc005deca52.zip
FreeBSD-src-c288b01e7dc244369bfc3e9378588bc005deca52.tar.gz
WARNS=4
-rw-r--r--usr.bin/apply/Makefile1
-rw-r--r--usr.bin/apply/apply.c2
-rw-r--r--usr.bin/ar/Makefile1
-rw-r--r--usr.bin/ar/ar.c4
-rw-r--r--usr.bin/mklocale/Makefile2
-rw-r--r--usr.bin/mklocale/yacc.y4
-rw-r--r--usr.bin/nohup/Makefile1
-rw-r--r--usr.bin/nohup/nohup.c8
8 files changed, 10 insertions, 13 deletions
diff --git a/usr.bin/apply/Makefile b/usr.bin/apply/Makefile
index ca0f10a..0355588 100644
--- a/usr.bin/apply/Makefile
+++ b/usr.bin/apply/Makefile
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= apply
+WARNS?= 4
.include <bsd.prog.mk>
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c
index e2f808a..25ba374 100644
--- a/usr.bin/apply/apply.c
+++ b/usr.bin/apply/apply.c
@@ -258,7 +258,7 @@ exec_shell(const char *command, char *use_shell, char *use_name)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr,
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile
index 1d6d8bd..3046cde 100644
--- a/usr.bin/ar/Makefile
+++ b/usr.bin/ar/Makefile
@@ -7,5 +7,6 @@ SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \
CFLAGS+=-I${.CURDIR}
MAN= ar.1aout ar.5
BINDIR= /usr/libexec/aout
+WARNS?= 4
.include <bsd.prog.mk>
diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c
index 19dddde..c39d1b7 100644
--- a/usr.bin/ar/ar.c
+++ b/usr.bin/ar/ar.c
@@ -79,9 +79,7 @@ static void usage(void);
* option parsing and sanity checking.
*/
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
int c;
char *p;
diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile
index 9e23243..eb63413 100644
--- a/usr.bin/mklocale/Makefile
+++ b/usr.bin/mklocale/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PROG= mklocale
-WARNS?= 2
+WARNS?= 4
SRCS= yacc.y lex.l y.tab.h
CFLAGS+= -I. -I${.CURDIR}
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index f1c1c79..a9a4693 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -201,9 +201,7 @@ int debug = 0;
FILE *fp;
int
-main(ac, av)
- int ac;
- char *av[];
+main(int ac, char *av[])
{
int x;
diff --git a/usr.bin/nohup/Makefile b/usr.bin/nohup/Makefile
index 5ec4057..cd635ce 100644
--- a/usr.bin/nohup/Makefile
+++ b/usr.bin/nohup/Makefile
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= nohup
+WARNS?= 4
.include <bsd.prog.mk>
diff --git a/usr.bin/nohup/nohup.c b/usr.bin/nohup/nohup.c
index 230365f..fbb9754 100644
--- a/usr.bin/nohup/nohup.c
+++ b/usr.bin/nohup/nohup.c
@@ -71,9 +71,7 @@ static void usage(void);
#define EXIT_MISC 127
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int exit_status;
@@ -98,7 +96,7 @@ main(argc, argv)
}
static void
-dofile()
+dofile(void)
{
int fd;
char path[MAXPATHLEN];
@@ -132,7 +130,7 @@ dupit:
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: nohup [--] utility [arguments]\n");
exit(EXIT_MISC);
OpenPOWER on IntegriCloud