summaryrefslogtreecommitdiffstats
path: root/adventure/save.c
diff options
context:
space:
mode:
authorjmc <jmc@NetBSD.org>2005-07-01 00:03:36 +0000
committerjmc <jmc@NetBSD.org>2005-07-01 00:03:36 +0000
commitdf8ac21ffab206d3f69612627f47e86356f11a4d (patch)
tree53c2a86c8829e3cccb6403422c6067a262f6e19c /adventure/save.c
parentf48342524980f49dfc1142b5a48b89ec593d7e11 (diff)
downloadbsdgames-darwin-df8ac21ffab206d3f69612627f47e86356f11a4d.tar.gz
bsdgames-darwin-df8ac21ffab206d3f69612627f47e86356f11a4d.zip
KNF and WARNS=3
Diffstat (limited to 'adventure/save.c')
-rw-r--r--adventure/save.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/adventure/save.c b/adventure/save.c
index 2f0e355b..8e25c54b 100644
--- a/adventure/save.c
+++ b/adventure/save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.8 2003/08/07 09:36:51 agc Exp $ */
+/* $NetBSD: save.c,v 1.9 2005/07/01 00:03:36 jmc Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.8 2003/08/07 09:36:51 agc Exp $");
+__RCSID("$NetBSD: save.c,v 1.9 2005/07/01 00:03:36 jmc Exp $");
#endif
#endif /* not lint */
@@ -120,11 +120,10 @@ struct savestruct save_array[] =
{NULL, 0}
};
+/* Two passes on data: first to get checksum, second */
+/* to output the data using checksum to start random #s */
int
-save(outfile) /* Two passes on data: first to get checksum,
- * second */
- const char *outfile; /* to output the data using checksum to start
- * random #s */
+save(const char *outfile)
{
FILE *out;
struct savestruct *p;
@@ -157,8 +156,7 @@ save(outfile) /* Two passes on data: first to get checksum,
}
int
-restore(infile)
- const char *infile;
+restore(const char *infile)
{
FILE *in;
struct savestruct *p;