summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-07-14 18:23:22 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-07-14 18:23:22 +0000
commitda8de1e204f41759fda96dba2b7ca12324453611 (patch)
tree826dbfc96c991b197cc2c88576fe83ac45542b9f
parentd183dcb670a8a952364a7ce2d3d541d5f8f64b9f (diff)
Notes
-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 ca0f10a2fce85..0355588b3c394 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 e2f808aeb2d12..25ba374d97e93 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 1d6d8bd42a03c..3046cde6da294 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 19dddde5d7ad8..c39d1b7c0b13a 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 9e23243d91472..eb63413e932b8 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 f1c1c795600f1..a9a4693ae6749 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 5ec4057d30a55..cd635cefa526e 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 230365f597951..fbb9754303e0a 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);