Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb Make this build.



details:   https://anonhg.NetBSD.org/src/rev/e60a9b0e721d
branches:  trunk
changeset: 795427:e60a9b0e721d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Apr 12 19:25:48 2014 +0000

description:
Make this build.

Hi jakllsch@.

diffstat:

 sys/ddb/db_cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 84d411545886 -r e60a9b0e721d sys/ddb/db_cpu.c
--- a/sys/ddb/db_cpu.c  Sat Apr 12 19:01:49 2014 +0000
+++ b/sys/ddb/db_cpu.c  Sat Apr 12 19:25:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_cpu.c,v 1.6 2014/04/12 19:01:49 jakllsch Exp $      */
+/*     $NetBSD: db_cpu.c,v 1.7 2014/04/12 19:25:48 jakllsch Exp $      */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_cpu.c,v 1.6 2014/04/12 19:01:49 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_cpu.c,v 1.7 2014/04/12 19:25:48 jakllsch Exp $");
 
 #ifndef _KERNEL
 #include <stdbool.h>
@@ -81,7 +81,7 @@
        u_int idx;
 
        db_read_bytes((db_addr_t)&ci->ci_index, sizeof(idx), (char *)&idx);
-       if ((idx + 1) >= ncpu)
+       if ((idx + 1) >= (u_int)db_ncpu)
                return NULL;
        return db_cpu_by_index(idx + 1);
 }



Home | Main Index | Thread Index | Old Index