Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio Just call fflush() from _cleanup(), since it ...



details:   https://anonhg.NetBSD.org/src/rev/5ef989d4f8a2
branches:  trunk
changeset: 480848:5ef989d4f8a2
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Jan 21 19:55:02 2000 +0000

description:
Just call fflush() from _cleanup(), since it does the right locking.

diffstat:

 lib/libc/stdio/findfp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 197669588873 -r 5ef989d4f8a2 lib/libc/stdio/findfp.c
--- a/lib/libc/stdio/findfp.c   Fri Jan 21 19:54:13 2000 +0000
+++ b/lib/libc/stdio/findfp.c   Fri Jan 21 19:55:02 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: findfp.c,v 1.12 1998/11/15 17:19:53 christos Exp $     */
+/*     $NetBSD: findfp.c,v 1.13 2000/01/21 19:55:02 mycroft Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)findfp.c   8.2 (Berkeley) 1/4/94";
 #else
-__RCSID("$NetBSD: findfp.c,v 1.12 1998/11/15 17:19:53 christos Exp $");
+__RCSID("$NetBSD: findfp.c,v 1.13 2000/01/21 19:55:02 mycroft Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -171,7 +171,7 @@
 _cleanup()
 {
        /* (void) _fwalk(fclose); */
-       (void) _fwalk(__sflush);                /* `cheating' */
+       (void) fflush(NULL);                    /* `cheating' */
 }
 
 /*



Home | Main Index | Thread Index | Old Index