diff options
author | 2003-11-20 17:47:02 +0000 | |
---|---|---|
committer | 2003-11-20 17:47:02 +0000 | |
commit | ec4bf2950e5e8aeee4e3fd13c3375c83e74c9897 (patch) | |
tree | 524207c2f742448af7f377eb326377e95b3563c9 | |
parent | Check for round_page() overflow in uvm_vslock()/uvm_vsunlock(). (diff) | |
download | wireguard-openbsd-ec4bf2950e5e8aeee4e3fd13c3375c83e74c9897.tar.xz wireguard-openbsd-ec4bf2950e5e8aeee4e3fd13c3375c83e74c9897.zip |
Make these pass -Wsign-compare
-rw-r--r-- | sys/dev/ic/pcdisplay_chars.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/pcdisplay_subr.c | 9 |
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; } |