summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-01-21 17:08:33 +0000
committermycroft <mycroft@NetBSD.org>2000-01-21 17:08:33 +0000
commit96d2160d9c3e88d11f2fdba53cf69a0d14135860 (patch)
tree4dcd8083f397974401aeff956848afd326bb3e98
parent0ce6e8b366e106c4d2402a9d205a5efd6234eba1 (diff)
downloadbsdgames-darwin-96d2160d9c3e88d11f2fdba53cf69a0d14135860.tar.gz
bsdgames-darwin-96d2160d9c3e88d11f2fdba53cf69a0d14135860.tar.zst
bsdgames-darwin-96d2160d9c3e88d11f2fdba53cf69a0d14135860.zip
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
-rw-r--r--hunt/hunt/hunt.c6
-rw-r--r--hunt/huntd/hunt.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index e527c312..64469e64 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
+/* $NetBSD: hunt.c,v 1.9 2000/01/21 17:08:33 mycroft Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.9 2000/01/21 17:08:33 mycroft Exp $");
#endif /* not lint */
# include <sys/stat.h>
@@ -104,7 +104,6 @@ main(ac, av)
{
char *term;
int c;
- extern int errno;
extern int Otto_mode;
extern int optind;
extern char *optarg;
@@ -390,7 +389,6 @@ list_drivers()
static int initial = TRUE;
static struct in_addr local_address;
struct hostent *hp;
- extern int errno;
# ifdef BROADCAST
static int brdc;
static SOCKET *brdv;
diff --git a/hunt/huntd/hunt.h b/hunt/huntd/hunt.h
index 95072e55..1bb208b8 100644
--- a/hunt/huntd/hunt.h
+++ b/hunt/huntd/hunt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */
+/* $NetBSD: hunt.h,v 1.6 2000/01/21 17:08:34 mycroft Exp $ */
/*
* Hunt
@@ -346,7 +346,7 @@ extern char Buf[BUFSIZ], Maze[HEIGHT][WIDTH2], Orig_maze[HEIGHT][WIDTH2];
extern char *Sock_name, *Driver;
-extern int errno, Nplayer, Num_fds, Socket, Status;
+extern int Nplayer, Num_fds, Socket, Status;
extern fd_set Fds_mask, Have_inp;
# ifdef INTERNET