diff --git a/usr.bin/apply/Makefile b/usr.bin/apply/Makefile index ca0f10a2fce8..0355588b3c39 100644 --- a/usr.bin/apply/Makefile +++ b/usr.bin/apply/Makefile @@ -2,5 +2,6 @@ # $FreeBSD$ PROG= apply +WARNS?= 4 .include diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c index e2f808aeb2d1..25ba374d97e9 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 1d6d8bd42a03..3046cde6da29 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 diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index 19dddde5d7ad..c39d1b7c0b13 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 9e23243d9147..eb63413e932b 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 f1c1c795600f..a9a4693ae674 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 5ec4057d30a5..cd635cefa526 100644 --- a/usr.bin/nohup/Makefile +++ b/usr.bin/nohup/Makefile @@ -2,5 +2,6 @@ # $FreeBSD$ PROG= nohup +WARNS?= 4 .include diff --git a/usr.bin/nohup/nohup.c b/usr.bin/nohup/nohup.c index 230365f59795..fbb9754303e0 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 @@ dofile() } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: nohup [--] utility [arguments]\n"); exit(EXIT_MISC);