Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Fix NULL change lossage.



details:   https://anonhg.NetBSD.org/src/rev/901bd0bb9f56
branches:  trunk
changeset: 553950:901bd0bb9f56
user:      ragge <ragge%NetBSD.org@localhost>
date:      Thu Oct 23 10:05:53 2003 +0000

description:
Fix NULL change lossage.

diffstat:

 sys/arch/alpha/alpha/db_trace.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r dd33a3d7466e -r 901bd0bb9f56 sys/arch/alpha/alpha/db_trace.c
--- a/sys/arch/alpha/alpha/db_trace.c   Thu Oct 23 09:59:25 2003 +0000
+++ b/sys/arch/alpha/alpha/db_trace.c   Thu Oct 23 10:05:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.10 2003/01/17 22:11:17 thorpej Exp $ */
+/* $NetBSD: db_trace.c,v 1.11 2003/10/23 10:05:53 ragge Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.10 2003/01/17 22:11:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.11 2003/10/23 10:05:53 ragge Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -93,7 +93,7 @@
        { (vaddr_t)&XentSys,            "syscall" },
        { (vaddr_t)&XentUna,            "unaligned access fault" },
        { (vaddr_t)&XentRestart,        "console restart" },
-       { NULL }
+       { 0 }
 };
 
 /*
@@ -164,7 +164,7 @@
 {
        int i;
 
-       for (i = 0; special_symbols[i].ss_val != NULL; ++i)
+       for (i = 0; special_symbols[i].ss_val != 0; ++i)
                if (v == special_symbols[i].ss_val)
                        return 1;
        return 0;
@@ -288,7 +288,7 @@
                if (sym_is_trapsymbol(symval)) {
                        tf = (struct trapframe *)frame;
 
-                       for (i = 0; special_symbols[i].ss_val != NULL; ++i)
+                       for (i = 0; special_symbols[i].ss_val != 0; ++i)
                                if (symval == special_symbols[i].ss_val)
                                        (*pr)("--- %s",
                                            special_symbols[i].ss_note);



Home | Main Index | Thread Index | Old Index