Skip to content

Commit d5ad059

Browse files
hubertfhubertf
hubertf
authored and
hubertf
committed
Remove unused function and unnecessary prototypes, as per PR 6050 by
Joseph Myers <jsm28@cam.ac.uk>
1 parent 110e8db commit d5ad059

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

games/adventure/extern.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: extern.h,v 1.5 1998/08/24 22:26:23 hubertf Exp $ */
1+
/* $NetBSD: extern.h,v 1.6 1998/08/29 22:40:07 hubertf Exp $ */
22

33
/*
44
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -49,15 +49,16 @@ void startup __P((void));
4949

5050
/* io.c */
5151
void getin __P((char **, char **));
52-
int confirm __P((char *));
5352
int yes __P((int, int, int));
5453
int yesm __P((int, int, int));
5554
int next __P((void));
5655
void rdata __P((void));
5756
int rnum __P((void));
5857
void rdesc __P((int));
5958
void rtrav __P((void));
60-
int twrite __P((int));
59+
#ifdef DEBUG
60+
void twrite __P((int));
61+
#endif
6162
void rvoc __P((void));
6263
void rlocs __P((void));
6364
void rdflt __P((void));
@@ -76,9 +77,6 @@ int main __P((int, char **));
7677
int save __P((char *));
7778
int restore __P((char *));
7879

79-
/* setup.c */
80-
int main __P((int, char *[]));
81-
8280
/* subr.c */
8381
int toting __P((int));
8482
int here __P((int));

games/adventure/io.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: io.c,v 1.6 1997/10/11 01:53:29 lukem Exp $ */
1+
/* $NetBSD: io.c,v 1.7 1998/08/29 22:40:07 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@
4343
#if 0
4444
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
4545
#else
46-
__RCSID("$NetBSD: io.c,v 1.6 1997/10/11 01:53:29 lukem Exp $");
46+
__RCSID("$NetBSD: io.c,v 1.7 1998/08/29 22:40:07 hubertf Exp $");
4747
#endif
4848
#endif /* not lint */
4949

@@ -100,20 +100,6 @@ getin(wrd1, wrd2) /* get command from user */
100100
}
101101
}
102102

103-
int
104-
confirm(mesg) /* confirm irreversible action */
105-
char *mesg;
106-
{
107-
int result;
108-
printf("%s", mesg); /* tell him what he did */
109-
if (getchar() == 'y') /* was his first letter a 'y'? */
110-
result = 1;
111-
else
112-
result = 0;
113-
FLUSHLINE;
114-
return (result);
115-
}
116-
117103
int
118104
yes(x, y, z) /* confirm with rspeak */
119105
int x, y, z;

0 commit comments

Comments
 (0)