Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Include <errno.h> instead of using "extern int errno; ".



details:   https://anonhg.NetBSD.org/src/rev/a8699e82e5c5
branches:  trunk
changeset: 484874:a8699e82e5c5
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 14 05:54:20 2000 +0000

description:
Include <errno.h> instead of using "extern int errno;".

diffstat:

 bin/sh/main.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 7d9405cdd169 -r a8699e82e5c5 bin/sh/main.c
--- a/bin/sh/main.c     Fri Apr 14 05:52:56 2000 +0000
+++ b/bin/sh/main.c     Fri Apr 14 05:54:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.35 2000/01/27 23:39:40 christos Exp $       */
+/*     $NetBSD: main.c,v 1.36 2000/04/14 05:54:20 simonb Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -46,10 +46,11 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.7 (Berkeley) 7/19/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.35 2000/01/27 23:39:40 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.36 2000/04/14 05:54:20 simonb Exp $");
 #endif
 #endif /* not lint */
 
+#include <errno.h>
 #include <stdio.h>
 #include <signal.h>
 #include <sys/stat.h>
@@ -84,7 +85,6 @@
 int rootshell;
 STATIC union node *curcmd;
 STATIC union node *prevcmd;
-extern int errno;
 #if PROFILE
 short profile_buf[16384];
 extern int etext();



Home | Main Index | Thread Index | Old Index