Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/games/hunt/hunt Pull up revision 1.9 (requested by mycr...



details:   https://anonhg.NetBSD.org/src/rev/5737df8180c7
branches:  netbsd-1-4
changeset: 470147:5737df8180c7
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:00:56 2000 +0000

description:
Pull up revision 1.9 (requested by mycroft):
  Always do the errno indirection hack, so that non-threaded
  libraries get the right errno value when linked with -lpthread.
  This means "always include <errno.h> and never declare errno
  yourself".

diffstat:

 games/hunt/hunt/hunt.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 00aff8863617 -r 5737df8180c7 games/hunt/hunt/hunt.c
--- a/games/hunt/hunt/hunt.c    Sun Jan 23 12:00:48 2000 +0000
+++ b/games/hunt/hunt/hunt.c    Sun Jan 23 12:00:56 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
+/*     $NetBSD: hunt.c,v 1.8.2.1 2000/01/23 12:00:56 he 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.8.2.1 2000/01/23 12:00:56 he Exp $");
 #endif /* not lint */
 
 # include      <sys/stat.h>
@@ -104,7 +104,6 @@
 {
        char            *term;
        int             c;
-       extern int      errno;
        extern int      Otto_mode;
        extern int      optind;
        extern char     *optarg;
@@ -390,7 +389,6 @@
        static int              initial = TRUE;
        static struct in_addr   local_address;
        struct hostent          *hp;
-       extern int              errno;
 # ifdef BROADCAST
        static  int             brdc;
        static  SOCKET          *brdv;



Home | Main Index | Thread Index | Old Index