summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-09-06 11:53:57 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-09-06 11:53:57 +0000
commitae53cf9d5845d1eac0e32a9ec80ab86e26d1c7bd (patch)
treee632263c5bfc1c23961eb3ebe4382d4cf654812e
parent7f0699b7fa07ec5982d1d52cde1cb20df34eae9c (diff)
remove uneeded function decls
ok tb@
-rw-r--r--games/hack/hack.c3
-rw-r--r--games/hack/hack.do_name.c3
-rw-r--r--games/hack/hack.main.c3
-rw-r--r--games/hack/hack.makemon.c3
-rw-r--r--games/hack/hack.objnam.c3
-rw-r--r--games/hack/hack.unix.c3
6 files changed, 6 insertions, 12 deletions
diff --git a/games/hack/hack.c b/games/hack/hack.c
index 640ff236a51..298da184804 100644
--- a/games/hack/hack.c
+++ b/games/hack/hack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.c,v 1.11 2016/01/10 15:12:20 mestre Exp $ */
+/* $OpenBSD: hack.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -69,7 +69,6 @@
#include "hack.h"
extern char *nomovemsg;
-extern char *exclam();
static void movobj(struct obj *, int, int);
#ifdef QUEST
diff --git a/games/hack/hack.do_name.c b/games/hack/hack.do_name.c
index 07d928f2867..1f75a2cbd01 100644
--- a/games/hack/hack.do_name.c
+++ b/games/hack/hack.do_name.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.do_name.c,v 1.11 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.do_name.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -118,7 +118,6 @@ do_mname(void)
coord cc;
int cx,cy,lth,i;
struct monst *mtmp, *mtmp2;
- extern char *lmonnam();
cc = getpos(0, "the monster you want to name");
cx = cc.x;
diff --git a/games/hack/hack.main.c b/games/hack/hack.main.c
index 96382aa2f49..1a44c166a7c 100644
--- a/games/hack/hack.main.c
+++ b/games/hack/hack.main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.main.c,v 1.25 2023/06/03 15:19:38 op Exp $ */
+/* $OpenBSD: hack.main.c,v 1.26 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -350,7 +350,6 @@ not_recovered:
if(moves%2 == 0 ||
(!(Fast & ~INTRINSIC) && (!Fast || rn2(3)))) {
- extern struct monst *makemon();
movemon();
if(!rn2(70))
(void) makemon((struct permonst *)0, 0, 0);
diff --git a/games/hack/hack.makemon.c b/games/hack/hack.makemon.c
index e607b6d545b..9143b7551cb 100644
--- a/games/hack/hack.makemon.c
+++ b/games/hack/hack.makemon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.makemon.c,v 1.8 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.makemon.c,v 1.9 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -64,7 +64,6 @@
#include "hack.h"
extern char fut_geno[];
-extern struct obj *mkobj_at();
struct monst zeromonst;
/*
diff --git a/games/hack/hack.objnam.c b/games/hack/hack.objnam.c
index a6e19dceef1..fd2316de8fc 100644
--- a/games/hack/hack.objnam.c
+++ b/games/hack/hack.objnam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.objnam.c,v 1.11 2016/01/09 18:33:15 mestre Exp $ */
+/* $OpenBSD: hack.objnam.c,v 1.12 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -609,7 +609,6 @@ any:
typ = probtype(let);
typfnd:
{ struct obj *otmp;
- extern struct obj *mksobj();
let = objects[typ].oc_olet;
otmp = mksobj(typ);
if(heavy)
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c
index 039ef93c5dc..117c6ae3aa3 100644
--- a/games/hack/hack.unix.c
+++ b/games/hack/hack.unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.unix.c,v 1.22 2023/06/03 15:19:38 op Exp $ */
+/* $OpenBSD: hack.unix.c,v 1.23 2023/09/06 11:53:56 jsg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -97,7 +97,6 @@ static struct tm *
getlt(void)
{
time_t date;
- struct tm *localtime();
(void) time(&date);
return(localtime(&date));