From b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 16:38:40 +0000 Subject: WARNSify --- pig/pig.6 | 6 +++--- pig/pig.c | 17 +++++++++-------- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'pig') diff --git a/pig/pig.6 b/pig/pig.6 index 66d4f1b7..b25cb0ad 100644 --- a/pig/pig.6 +++ b/pig/pig.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: pig.6,v 1.3 1997/05/29 01:48:08 cgd Exp $ +.\" $NetBSD: pig.6,v 1.4 1997/10/10 16:43:33 lukem Exp $ .\" .\" Copyright (c) 1992 The Regents of the University of California. .\" All rights reserved. @@ -40,10 +40,10 @@ .Nm pig .Nd eformatray inputway asway Igpay Atinlay .Sh SYNOPSIS -.Nm pig +.Nm .Sh DESCRIPTION Ethay -.Nm igpay +.Nm utilityway eadsray ethay andardstay inputway andway iteswray itway outway otay andardstay outputway inway Igpay Atinlay. .Pp diff --git a/pig/pig.c b/pig/pig.c index 2284d63c..c7bb3397 100644 --- a/pig/pig.c +++ b/pig/pig.c @@ -1,4 +1,4 @@ -/* $NetBSD: pig.c,v 1.4 1997/01/07 11:16:12 tls Exp $ */ +/* $NetBSD: pig.c,v 1.5 1997/10/10 16:43:37 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -33,17 +33,17 @@ * SUCH DAMAGE. */ +#include #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1992, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$NetBSD: pig.c,v 1.4 1997/01/07 11:16:12 tls Exp $"; +__RCSID("$NetBSD: pig.c,v 1.5 1997/10/10 16:43:37 lukem Exp $"); #endif #endif /* not lint */ @@ -55,6 +55,7 @@ static char rcsid[] = "$NetBSD: pig.c,v 1.4 1997/01/07 11:16:12 tls Exp $"; #include #include +int main __P((int, char *[])); void pigout __P((char *, int)); void usage __P((void)); @@ -63,11 +64,11 @@ main(argc, argv) int argc; char *argv[]; { - register int len; + int len; int ch; char buf[1024]; - while ((ch = getopt(argc, argv, "")) != EOF) + while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { case '?': default: @@ -99,7 +100,7 @@ pigout(buf, len) char *buf; int len; { - register int ch, start, i; + int ch, start, i; int olen, allupper, firstupper; /* See if the word is all upper case */ -- cgit v1.2.3-56-ge451