From 96d2160d9c3e88d11f2fdba53cf69a0d14135860 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 21 Jan 2000 17:08:33 +0000 Subject: Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get the correct definition from errno.h. --- hunt/hunt/hunt.c | 6 ++---- hunt/huntd/hunt.h | 4 ++-- 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 #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 @@ -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 -- cgit v1.2.3