summaryrefslogtreecommitdiffstats
path: root/larn/main.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-03 19:20:40 +0000
committerdholland <dholland@NetBSD.org>2008-02-03 19:20:40 +0000
commitbf91baeffb42cde8688e3e5735369c864ed29d91 (patch)
treec431f9c498c73de5ed5021009b69cecd9de27c02 /larn/main.c
parentf1ec001029402476abce34e4130373b3c34a16c7 (diff)
downloadbsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.tar.gz
bsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.tar.zst
bsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.zip
Make a bunch of functions static. Merged from larn 12.2.
Diffstat (limited to 'larn/main.c')
-rw-r--r--larn/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/larn/main.c b/larn/main.c
index 288a8f8b..14f1caef 100644
--- a/larn/main.c
+++ b/larn/main.c
@@ -1,9 +1,9 @@
-/* $NetBSD: main.c,v 1.21 2008/02/03 03:45:55 dholland Exp $ */
+/* $NetBSD: main.c,v 1.22 2008/02/03 19:20:42 dholland Exp $ */
/* main.c */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.21 2008/02/03 03:45:55 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.22 2008/02/03 19:20:42 dholland Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -15,6 +15,8 @@ __RCSID("$NetBSD: main.c,v 1.21 2008/02/03 03:45:55 dholland Exp $");
#include "header.h"
#include "extern.h"
+static int whatitem(const char *);
+
static char copyright[] = "\nLarn is copyrighted 1986 by Noah Morgan.\n";
int srcount = 0; /* line counter for showstr() */
int dropflag = 0; /* if 1 then don't lookforobject() next round */
@@ -1267,7 +1269,7 @@ quaff()
/*
function to ask what player wants to do
*/
-int
+static int
whatitem(const char *str)
{
int i;