summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
Diffstat (limited to 'fortune')
-rw-r--r--fortune/fortune/fortune.c7
-rw-r--r--fortune/unstr/unstr.c14
2 files changed, 8 insertions, 13 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index f9c8bdc8..d5dd74f4 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.63 2010/01/17 22:52:00 wiz Exp $ */
+/* $NetBSD: fortune.c,v 1.64 2012/06/19 05:46:08 dholland Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.63 2010/01/17 22:52:00 wiz Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.64 2012/06/19 05:46:08 dholland Exp $");
#endif
#endif /* not lint */
@@ -1061,8 +1061,7 @@ open_fp(FILEDESC *fp)
* Open up the dat file if we need to.
*/
static void
-open_dat(fp)
- FILEDESC *fp;
+open_dat(FILEDESC *fp)
{
if (fp->datfd < 0 && (fp->datfd = open(fp->datfile, O_RDONLY)) < 0)
err(1, "Cannot open `%s'", fp->datfile);
diff --git a/fortune/unstr/unstr.c b/fortune/unstr/unstr.c
index 65207960..6f5e8241 100644
--- a/fortune/unstr/unstr.c
+++ b/fortune/unstr/unstr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: unstr.c,v 1.13 2008/07/20 01:03:21 lukem Exp $ */
+/* $NetBSD: unstr.c,v 1.14 2012/06/19 05:46:08 dholland Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\
#if 0
static char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: unstr.c,v 1.13 2008/07/20 01:03:21 lukem Exp $");
+__RCSID("$NetBSD: unstr.c,v 1.14 2012/06/19 05:46:08 dholland Exp $");
#endif
#endif /* not lint */
@@ -85,9 +85,7 @@ void order_unstr(STRFILE *);
/* ARGSUSED */
int
-main(ac, av)
- int ac __unused;
- char **av;
+main(int ac __unused, char **av)
{
static STRFILE tbl; /* description table */
@@ -114,8 +112,7 @@ main(ac, av)
}
void
-getargs(av)
- char *av[];
+getargs(char *av[])
{
if (!*++av) {
(void) fprintf(stderr, "usage: unstr datafile\n");
@@ -127,8 +124,7 @@ getargs(av)
}
void
-order_unstr(tbl)
- STRFILE *tbl;
+order_unstr(STRFILE *tbl)
{
unsigned int i;
char *sp;