Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sbin/init Pull up revision 1.36 (requested by mycroft):



details:   https://anonhg.NetBSD.org/src/rev/7f4bc064c4f7
branches:  netbsd-1-4
changeset: 470152:7f4bc064c4f7
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 12:01:51 2000 +0000

description:
Pull up revision 1.36 (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:

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

diffs (34 lines):

diff -r d0135c104525 -r 7f4bc064c4f7 sbin/init/init.c
--- a/sbin/init/init.c  Sun Jan 23 12:01:34 2000 +0000
+++ b/sbin/init/init.c  Sun Jan 23 12:01:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.34 1998/11/14 07:17:58 tls Exp $    */
+/*     $NetBSD: init.c,v 1.34.2.1 2000/01/23 12:01:51 he Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)init.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: init.c,v 1.34 1998/11/14 07:17:58 tls Exp $");
+__RCSID("$NetBSD: init.c,v 1.34.2.1 2000/01/23 12:01:51 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -478,7 +478,6 @@
 #ifdef KERN_SECURELVL
        int name[2], curlevel;
        size_t len;
-       extern int errno;
 
        name[0] = CTL_KERN;
        name[1] = KERN_SECURELVL;
@@ -503,7 +502,6 @@
 {
 #ifdef KERN_SECURELVL
        int name[2], curlevel;
-       extern int errno;
 
        curlevel = getsecuritylevel();
        if (newlevel == curlevel)



Home | Main Index | Thread Index | Old Index