diff options
Diffstat (limited to 'games/ppt')
-rw-r--r-- | games/ppt/ppt.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/games/ppt/ppt.c b/games/ppt/ppt.c index 7a8db30ae47..717c760914b 100644 --- a/games/ppt/ppt.c +++ b/games/ppt/ppt.c @@ -1,3 +1,4 @@ +/* $OpenBSD: ppt.c,v 1.4 1998/08/19 07:40:51 pjanzen Exp $ */ /* $NetBSD: ppt.c,v 1.4 1995/03/23 08:35:40 cgd Exp $ */ /* @@ -43,14 +44,17 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: ppt.c,v 1.4 1995/03/23 08:35:40 cgd Exp $"; +static char rcsid[] = "$OpenBSD: ppt.c,v 1.4 1998/08/19 07:40:51 pjanzen Exp $"; #endif #endif /* not lint */ +#include <sys/types.h> #include <stdio.h> +#include <unistd.h> -static void putppt(); +static void putppt __P((int)); +int main(argc, argv) int argc; char **argv; @@ -64,7 +68,7 @@ main(argc, argv) (void) puts("___________"); if (argc > 1) - while (p = *++argv) + while ((p = *++argv)) for (; *p; ++p) putppt((int)*p); else while ((c = getchar()) != EOF) |