Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga Initialize variable "pa" to NULL in pma...



details:   https://anonhg.NetBSD.org/src/rev/1cf47497f5f5
branches:  trunk
changeset: 570097:1cf47497f5f5
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Sep 23 21:10:31 2004 +0000

description:
Initialize variable "pa" to NULL in pmap_extract() to fix a compiler
error while building a debug kernel. Problem pointed out by S.P.Zeidler
on "port-amiga" mailing list.

diffstat:

 sys/arch/amiga/amiga/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e435f32752df -r 1cf47497f5f5 sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c       Thu Sep 23 17:40:16 2004 +0000
+++ b/sys/arch/amiga/amiga/pmap.c       Thu Sep 23 21:10:31 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.108 2003/09/27 19:34:17 mhitch Exp $        */
+/*     $NetBSD: pmap.c,v 1.109 2004/09/23 21:10:31 tron Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -107,7 +107,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.108 2003/09/27 19:34:17 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.109 2004/09/23 21:10:31 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1563,7 +1563,7 @@
        paddr_t *pap;
 {
        boolean_t rv = FALSE;
-       paddr_t pa;
+       paddr_t pa = NULL;
        u_int pte;
 
 #ifdef DEBUG



Home | Main Index | Thread Index | Old Index