Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib fix error handling: almost all error...



details:   https://anonhg.NetBSD.org/src/rev/d3628ca9692d
branches:  trunk
changeset: 471739:d3628ca9692d
user:      drochner <drochner%NetBSD.org@localhost>
date:      Fri Apr 09 20:12:57 1999 +0000

description:
fix error handling: almost all errors were ignored

diffstat:

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

diffs (22 lines):

diff -r e96339856fd3 -r d3628ca9692d sys/arch/i386/stand/lib/loadfile.c
--- a/sys/arch/i386/stand/lib/loadfile.c        Fri Apr 09 18:17:35 1999 +0000
+++ b/sys/arch/i386/stand/lib/loadfile.c        Fri Apr 09 20:12:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.7 1999/03/07 20:03:44 he Exp $ */
+/* $NetBSD: loadfile.c,v 1.8 1999/04/09 20:12:57 drochner 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