From b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 16:38:40 +0000 Subject: WARNSify --- ppt/ppt.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'ppt') diff --git a/ppt/ppt.c b/ppt/ppt.c index c86c1dc0..cef23a7f 100644 --- a/ppt/ppt.c +++ b/ppt/ppt.c @@ -1,4 +1,4 @@ -/* $NetBSD: ppt.c,v 1.4 1995/03/23 08:35:40 cgd Exp $ */ +/* $NetBSD: ppt.c,v 1.5 1997/10/10 16:48:39 lukem Exp $ */ /* * Copyright (c) 1988, 1993 @@ -33,34 +33,36 @@ * SUCH DAMAGE. */ +#include #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1988, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #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 $"; +__RCSID("$NetBSD: ppt.c,v 1.5 1997/10/10 16:48:39 lukem Exp $"); #endif #endif /* not lint */ #include -static void putppt(); + int main __P((int, char *[])); +static void putppt __P((int)); +int main(argc, argv) int argc; char **argv; { - register int c; - register char *p; + int c; + char *p; (void) puts("___________"); if (argc > 1) - while (p = *++argv) + while ((p = *++argv) != NULL) for (; *p; ++p) putppt((int)*p); else while ((c = getchar()) != EOF) @@ -71,9 +73,9 @@ main(argc, argv) static void putppt(c) - register int c; + int c; { - register int i; + int i; (void) putchar('|'); for (i = 7; i >= 0; i--) { -- cgit v1.2.3-56-ge451