Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/hp700 mask should really be unsigned. it does...



details:   https://anonhg.NetBSD.org/src/rev/61354058e08c
branches:  trunk
changeset: 761659:61354058e08c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Feb 04 14:51:02 2011 +0000

description:
mask should really be unsigned. it doesn't actually matter.

diffstat:

 sys/arch/hp700/hp700/intr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b09cf7e79790 -r 61354058e08c sys/arch/hp700/hp700/intr.c
--- a/sys/arch/hp700/hp700/intr.c       Fri Feb 04 14:35:30 2011 +0000
+++ b/sys/arch/hp700/hp700/intr.c       Fri Feb 04 14:51:02 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.35 2011/02/04 14:35:30 skrll Exp $  */
+/*     $NetBSD: intr.c,v 1.36 2011/02/04 14:51:02 skrll Exp $  */
 /*     $OpenBSD: intr.c,v 1.27 2009/12/31 12:52:35 jsing Exp $ */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.35 2011/02/04 14:35:30 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.36 2011/02/04 14:51:02 skrll Exp $");
 
 #define __MUTEX_PRIVATE
 
@@ -235,7 +235,8 @@
 int
 hp700_intr_allocate_bit(struct hp700_interrupt_register *ir)
 {
-       int bit_pos, mask;
+       int bit_pos;
+       u_int mask;
 
        for (bit_pos = 31, mask = (1 << bit_pos);
             bit_pos >= 0;



Home | Main Index | Thread Index | Old Index