Include <stdlib.h> for exit(), use prototypes and bump WARNS to 6.
This commit is contained in:
parent
a5ed4a0ad5
commit
e71c114c97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132966
@ -1,7 +1,10 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= ppt
|
||||
NOMAN= noman
|
||||
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user