Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/stand/bootxx Handle uninitialize warning.



details:   https://anonhg.NetBSD.org/src/rev/a7afbe9ce0db
branches:  trunk
changeset: 525852:a7afbe9ce0db
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Apr 18 20:12:01 2002 +0000

description:
Handle uninitialize warning.

diffstat:

 sys/arch/atari/stand/bootxx/bootxx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bdc35cabab44 -r a7afbe9ce0db sys/arch/atari/stand/bootxx/bootxx.c
--- a/sys/arch/atari/stand/bootxx/bootxx.c      Thu Apr 18 20:08:05 2002 +0000
+++ b/sys/arch/atari/stand/bootxx/bootxx.c      Thu Apr 18 20:12:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootxx.c,v 1.8 2001/10/24 20:12:57 leo Exp $   */
+/*     $NetBSD: bootxx.c,v 1.9 2002/04/18 20:12:01 leo Exp $   */
 
 /*
  * Copyright (c) 1995 Waldi Ravens.
@@ -65,7 +65,7 @@
        setheap(end, (void*)(LOADADDR3 - 4));
 
        printf("\033v\nNetBSD/Atari secondary bootloader"
-                                               " ($Revision: 1.8 $)\n\n");
+                                               " ($Revision: 1.9 $)\n\n");
 
        if (init_dskio(readsector, disklabel, -1))
                return(-1);
@@ -177,7 +177,7 @@
 load_booter(od)
        osdsc_t         *od;
 {
-       int             fd;
+       int             fd = -1;
        u_char          *bstart = (u_char *)(LOADADDR3);
        int             bsize;
        char            *fname;



Home | Main Index | Thread Index | Old Index