Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Nuke local prototype for closeall(). Add a new...



details:   https://anonhg.NetBSD.org/src/rev/06161493682f
branches:  trunk
changeset: 472370:06161493682f
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 28 13:24:12 1999 +0000

description:
Nuke local prototype for closeall(). Add a new define LIBSA_NO_CLOSE so that
we don't try to close files, if we are not using any other I/O.

diffstat:

 sys/lib/libsa/panic.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 53b4a687c5bf -r 06161493682f sys/lib/libsa/panic.c
--- a/sys/lib/libsa/panic.c     Wed Apr 28 13:20:55 1999 +0000
+++ b/sys/lib/libsa/panic.c     Wed Apr 28 13:24:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: panic.c,v 1.1 1999/02/12 10:51:28 drochner Exp $       */
+/*     $NetBSD: panic.c,v 1.2 1999/04/28 13:24:12 christos Exp $       */
 
 /*-
  *  Copyright (c) 1993 John Brezak
@@ -43,14 +43,15 @@
        char *fmt;
 #endif
 {
-    extern void closeall __P((void));
     va_list ap;
+#ifndef LIBSA_NO_CLOSE
     static int paniced;
     
     if (!paniced) {
         paniced = 1;
         closeall();
     }
+#endif
 
 #ifdef __STDC__
     va_start(ap, fmt);



Home | Main Index | Thread Index | Old Index