summaryrefslogtreecommitdiffstats
path: root/adventure
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-08-29 22:40:07 +0000
committerhubertf <hubertf@NetBSD.org>1998-08-29 22:40:07 +0000
commit50b9d92da6d2a0b63fc8f263fe2736b71b3ebdd2 (patch)
tree631738871e0ab5989e4d67a010819124875b2006 /adventure
parentc806d568b889a7e5ff59a7764dbd0c5a074e6491 (diff)
downloadbsdgames-darwin-50b9d92da6d2a0b63fc8f263fe2736b71b3ebdd2.tar.gz
bsdgames-darwin-50b9d92da6d2a0b63fc8f263fe2736b71b3ebdd2.tar.zst
bsdgames-darwin-50b9d92da6d2a0b63fc8f263fe2736b71b3ebdd2.zip
Remove unused function and unnecessary prototypes, as per PR 6050 by
Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'adventure')
-rw-r--r--adventure/extern.h10
-rw-r--r--adventure/io.c18
2 files changed, 6 insertions, 22 deletions
diff --git a/adventure/extern.h b/adventure/extern.h
index 86964579..28677e06 100644
--- a/adventure/extern.h
+++ b/adventure/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.5 1998/08/24 22:26:23 hubertf Exp $ */
+/* $NetBSD: extern.h,v 1.6 1998/08/29 22:40:07 hubertf Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -49,7 +49,6 @@ void startup __P((void));
/* io.c */
void getin __P((char **, char **));
-int confirm __P((char *));
int yes __P((int, int, int));
int yesm __P((int, int, int));
int next __P((void));
@@ -57,7 +56,9 @@ void rdata __P((void));
int rnum __P((void));
void rdesc __P((int));
void rtrav __P((void));
-int twrite __P((int));
+#ifdef DEBUG
+void twrite __P((int));
+#endif
void rvoc __P((void));
void rlocs __P((void));
void rdflt __P((void));
@@ -76,9 +77,6 @@ int main __P((int, char **));
int save __P((char *));
int restore __P((char *));
-/* setup.c */
-int main __P((int, char *[]));
-
/* subr.c */
int toting __P((int));
int here __P((int));
diff --git a/adventure/io.c b/adventure/io.c
index 6343d434..2e53cc56 100644
--- a/adventure/io.c
+++ b/adventure/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.6 1997/10/11 01:53:29 lukem Exp $ */
+/* $NetBSD: io.c,v 1.7 1998/08/29 22:40:07 hubertf Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: io.c,v 1.6 1997/10/11 01:53:29 lukem Exp $");
+__RCSID("$NetBSD: io.c,v 1.7 1998/08/29 22:40:07 hubertf Exp $");
#endif
#endif /* not lint */
@@ -101,20 +101,6 @@ getin(wrd1, wrd2) /* get command from user */
}
int
-confirm(mesg) /* confirm irreversible action */
- char *mesg;
-{
- int result;
- printf("%s", mesg); /* tell him what he did */
- if (getchar() == 'y') /* was his first letter a 'y'? */
- result = 1;
- else
- result = 0;
- FLUSHLINE;
- return (result);
-}
-
-int
yes(x, y, z) /* confirm with rspeak */
int x, y, z;
{