summaryrefslogtreecommitdiffstats
path: root/pig
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 16:38:40 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 16:38:40 +0000
commitb4a56b0ad7d1689e935db1f0f29f6cdfb65961fd (patch)
tree95ab3c6f8586978c37f68a5b0d84e0770ef835af /pig
parent50f99331097302f77db413ba7ad7299d928163eb (diff)
downloadbsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.gz
bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.zst
bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.zip
WARNSify
Diffstat (limited to 'pig')
-rw-r--r--pig/pig.66
-rw-r--r--pig/pig.c17
2 files changed, 12 insertions, 11 deletions
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 <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 */