From 7958ef6a18822513464cd063bb29c992a4aaf738 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 13 Oct 2009 06:25:53 +0000 Subject: Make number(6) build with WARNS=6. --- games/number/Makefile | 2 ++ games/number/number.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'games/number') diff --git a/games/number/Makefile b/games/number/Makefile index 8e75f71..08e9be8 100644 --- a/games/number/Makefile +++ b/games/number/Makefile @@ -4,4 +4,6 @@ PROG= number MAN= number.6 +WARNS?= 6 + .include diff --git a/games/number/number.c b/games/number/number.c index 243fc8d..d195a4f 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -88,9 +88,7 @@ void usage(void); int lflag; int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, first; char line[256]; @@ -275,7 +273,7 @@ void pfract(len) int len; { - static char *pref[] = { "", "ten-", "hundred-" }; + static char const * const pref[] = { "", "ten-", "hundred-" }; switch(len) { case 1: -- cgit v1.1