Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 Don't compare an integer variable to NULL.



details:   https://anonhg.NetBSD.org/src/rev/5d9810819077
branches:  trunk
changeset: 553911:5d9810819077
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Oct 22 21:09:09 2003 +0000

description:
Don't compare an integer variable to NULL.

diffstat:

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

diffs (27 lines):

diff -r 8e692aa0387a -r 5d9810819077 sys/arch/sh3/sh3/db_trace.c
--- a/sys/arch/sh3/sh3/db_trace.c       Wed Oct 22 21:04:40 2003 +0000
+++ b/sys/arch/sh3/sh3/db_trace.c       Wed Oct 22 21:09:09 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.11 2003/07/15 03:35:56 lukem Exp $      */
+/*     $NetBSD: db_trace.c,v 1.12 2003/10/22 21:09:09 uwe Exp $        */
 
 /*-
  * Copyright (c) 2000 Tsubai Masanari.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.11 2003/07/15 03:35:56 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.12 2003/10/22 21:09:09 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -95,7 +95,7 @@
                sym = db_search_symbol(callpc, DB_STGY_ANY, &offset);
                db_symbol_values(sym, &name, NULL);
 
-               if (lastframe == 0 && sym == NULL) {
+               if (lastframe == 0 && sym == 0) {
                        printf("symbol not found\n");
                        break;
                }



Home | Main Index | Thread Index | Old Index