diff options
author | lukem <lukem@NetBSD.org> | 1997-10-10 16:38:40 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-10 16:38:40 +0000 |
commit | b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd (patch) | |
tree | 95ab3c6f8586978c37f68a5b0d84e0770ef835af /pig | |
parent | 50f99331097302f77db413ba7ad7299d928163eb (diff) | |
download | bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.gz bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.zst bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.zip |
WARNSify
Diffstat (limited to 'pig')
-rw-r--r-- | pig/pig.6 | 6 | ||||
-rw-r--r-- | pig/pig.c | 17 |
2 files changed, 12 insertions, 11 deletions
@@ -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 @@ -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 <sys/cdefs.h> #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 <string.h> #include <unistd.h> +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 */ |