summaryrefslogtreecommitdiffstats
path: root/pig
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
commit59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c (patch)
tree629475be65e4569ada852759c1510dc0ea17512f /pig
parent4cb1100e13371f1523900523aba506ae1c62e44c (diff)
downloadbsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.gz
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.zst
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.zip
WARNS=5, and make WARNS=5 the default for src/games.
Diffstat (limited to 'pig')
-rw-r--r--pig/pig.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/pig/pig.c b/pig/pig.c
index e716efa8..a127ac74 100644
--- a/pig/pig.c
+++ b/pig/pig.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pig.c,v 1.14 2009/08/12 08:22:24 dholland Exp $ */
+/* $NetBSD: pig.c,v 1.15 2012/06/19 05:46:09 dholland Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\
#if 0
static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: pig.c,v 1.14 2009/08/12 08:22:24 dholland Exp $");
+__RCSID("$NetBSD: pig.c,v 1.15 2012/06/19 05:46:09 dholland Exp $");
#endif
#endif /* not lint */
@@ -57,9 +57,7 @@ static void pigout(char *, int);
static void usage(void) __dead;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int len;
int ch;
@@ -91,9 +89,7 @@ main(argc, argv)
}
static void
-pigout(buf, len)
- char *buf;
- int len;
+pigout(char *buf, int len)
{
int ch, start, i;
int olen, allupper, firstupper;
@@ -132,7 +128,7 @@ pigout(buf, len)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: pig\n");
exit(1);