Include <stdlib.h> for exit(), use prototypes and bump WARNS to 6.

This commit is contained in:
Stefan Farfeleder 2004-08-01 18:52:40 +00:00
parent a5ed4a0ad5
commit e71c114c97
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,10 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
PROG= ppt
NOMAN= noman
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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;