Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/stand/lib Apply rev 1.8 of sys/arch/i386/stand...



details:   https://anonhg.NetBSD.org/src/rev/183c2f15ca47
branches:  trunk
changeset: 471746:183c2f15ca47
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Apr 10 01:52:33 1999 +0000

description:
Apply rev 1.8 of sys/arch/i386/stand/lib/loadfile.c:
        fix error handling: almost all errors were ignored

YES, this will be made MI soon...

diffstat:

 sys/arch/pmax/stand/lib/loadfile.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r a2c795acd6c3 -r 183c2f15ca47 sys/arch/pmax/stand/lib/loadfile.c
--- a/sys/arch/pmax/stand/lib/loadfile.c        Sat Apr 10 01:21:36 1999 +0000
+++ b/sys/arch/pmax/stand/lib/loadfile.c        Sat Apr 10 01:52:33 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.2 1999/03/25 03:38:53 simonb Exp $ */
+/* $NetBSD: loadfile.c,v 1.3 1999/04/10 01:52:33 simonb Exp $ */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -165,9 +165,10 @@
                WARN(("%s", fname));
        }
 
-       if (rval == 0)
+       if (rval == 0) {
                PROGRESS(("=0x%lx\n", marks[MARK_END] - marks[MARK_START]));
-       return fd;
+               return fd;
+       }
 err:
        (void)close(fd);
        return -1;



Home | Main Index | Thread Index | Old Index