summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-11-20 17:47:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-11-20 17:47:03 +0000
commit9804231f5da6e8566f37d875f7c27599ac9e2c01 (patch)
tree9e4e989dd4472aea0694d23fb1700d9b9f30f622
parent4dbab6dd2afc7685c7ab9c17cde748ead019b078 (diff)
Make these pass -Wsign-compare
-rw-r--r--sys/dev/ic/pcdisplay_chars.c4
-rw-r--r--sys/dev/ic/pcdisplay_subr.c9
2 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/ic/pcdisplay_chars.c b/sys/dev/ic/pcdisplay_chars.c
index 825af2bd26f..d3ce4518176 100644
--- a/sys/dev/ic/pcdisplay_chars.c
+++ b/sys/dev/ic/pcdisplay_chars.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcdisplay_chars.c,v 1.2 2001/02/02 20:25:39 aaron Exp $ */
+/* $OpenBSD: pcdisplay_chars.c,v 1.3 2003/11/20 17:47:02 millert Exp $ */
/* $NetBSD: pcdisplay_chars.c,v 1.5 2000/06/08 07:01:19 cgd Exp $ */
/*
@@ -337,7 +337,7 @@ pcdisplay_mapchar(id, uni, index)
int uni;
unsigned int *index;
{
- int i;
+ u_int i;
if (uni < 128) {
*index = uni;
diff --git a/sys/dev/ic/pcdisplay_subr.c b/sys/dev/ic/pcdisplay_subr.c
index 70699e63510..ee4b1a54948 100644
--- a/sys/dev/ic/pcdisplay_subr.c
+++ b/sys/dev/ic/pcdisplay_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcdisplay_subr.c,v 1.4 2001/04/14 04:44:01 aaron Exp $ */
+/* $OpenBSD: pcdisplay_subr.c,v 1.5 2003/11/20 17:47:02 millert Exp $ */
/* $NetBSD: pcdisplay_subr.c,v 1.16 2000/06/08 07:01:19 cgd Exp $ */
/*
@@ -263,9 +263,8 @@ pcdisplay_eraserows(id, startrow, nrows, fillattr)
struct pcdisplayscreen *scr = id;
bus_space_tag_t memt = scr->hdl->ph_memt;
bus_space_handle_t memh = scr->hdl->ph_memh;
- bus_size_t off, count;
+ bus_size_t off, count, n;
u_int16_t val;
- int i;
off = startrow * scr->type->ncols;
count = nrows * scr->type->ncols;
@@ -276,6 +275,6 @@ pcdisplay_eraserows(id, startrow, nrows, fillattr)
bus_space_set_region_2(memt, memh, scr->dispoffset + off * 2,
val, count);
else
- for (i = 0; i < count; i++)
- scr->mem[off + i] = val;
+ for (n = 0; n < count; n++)
+ scr->mem[off + n] = val;
}