diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-08-01 18:52:40 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-08-01 18:52:40 +0000 |
commit | b1d859658754073f196a6b8593a049206eeee655 (patch) | |
tree | d08fde6b90a08c7976e6e0b312bf0d79359d0a38 /games | |
parent | c52da2bdacd5c949362aa840923b0434ce78f827 (diff) | |
download | FreeBSD-src-b1d859658754073f196a6b8593a049206eeee655.zip FreeBSD-src-b1d859658754073f196a6b8593a049206eeee655.tar.gz |
Include <stdlib.h> for exit(), use prototypes and bump WARNS to 6.
Diffstat (limited to 'games')
-rw-r--r-- | games/ppt/Makefile | 3 | ||||
-rw-r--r-- | games/ppt/ppt.c | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/games/ppt/Makefile b/games/ppt/Makefile index 64e3db0..9dedd3a 100644 --- a/games/ppt/Makefile +++ b/games/ppt/Makefile @@ -1,7 +1,10 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 +# $FreeBSD$ PROG= ppt NOMAN= noman +WARNS?= 6 + .include <bsd.prog.mk> diff --git a/games/ppt/ppt.c b/games/ppt/ppt.c index 2df8ef2..e0ae5e1 100644 --- a/games/ppt/ppt.c +++ b/games/ppt/ppt.c @@ -46,13 +46,12 @@ static const char rcsid[] = #endif /* not lint */ #include <stdio.h> +#include <stdlib.h> static void putppt(int); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { int c; char *p; @@ -69,8 +68,7 @@ main(argc, argv) } static void -putppt(c) - int c; +putppt(int c) { int i; |