summaryrefslogtreecommitdiffstats
path: root/morse
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 /morse
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 'morse')
-rw-r--r--morse/morse.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/morse/morse.c b/morse/morse.c
index 70cbe4d1..d5ba3284 100644
--- a/morse/morse.c
+++ b/morse/morse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: morse.c,v 1.16 2009/08/12 08:11:37 dholland Exp $ */
+/* $NetBSD: morse.c,v 1.17 2012/06/19 05:46:08 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\
#if 0
static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: morse.c,v 1.16 2009/08/12 08:11:37 dholland Exp $");
+__RCSID("$NetBSD: morse.c,v 1.17 2012/06/19 05:46:08 dholland Exp $");
#endif
#endif /* not lint */
@@ -119,9 +119,7 @@ static int sflag;
static int dflag;
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
int ch;
char *p;
@@ -201,8 +199,7 @@ main(argc, argv)
}
void
-decode(s)
- const char *s;
+decode(const char *s)
{
int i;
@@ -231,8 +228,7 @@ decode(s)
}
void
-morse(c)
- int c;
+morse(int c)
{
int i;
@@ -255,8 +251,7 @@ morse(c)
}
void
-show(s)
- const char *s;
+show(const char *s)
{
if (sflag)
printf(" %s", s);