summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-12-16 03:37:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-12-16 03:37:38 +0000
commite8442b76670a228fd2e0b029917ee0297ee03364 (patch)
tree364a3796ab5bcb3de96fbb2408dae267d14d74a1 /sys
parentee684a67c8ef2e3de72dca2559071b146f500250 (diff)
Pass gcc -Wsign-compare; ok grange@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/wdc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index 4d6f9dbaa5e..7ee749e2468 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.80 2003/11/19 21:30:43 grange Exp $ */
+/* $OpenBSD: wdc.c,v 1.81 2003/12/16 03:37:37 millert Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -158,9 +158,9 @@ struct channel_softc_vtbl wdc_default_vtbl = {
};
static char *wdc_log_buf = NULL;
-static int wdc_tail = 0;
-static int wdc_head = 0;
-static int wdc_size = 16 * 1024;
+static unsigned int wdc_tail = 0;
+static unsigned int wdc_head = 0;
+static unsigned int wdc_size = 16 * 1024;
static int chp_idx = 1;
void
@@ -233,7 +233,7 @@ wdc_get_log(unsigned int * size, unsigned int *left)
if (bytes < 0)
bytes += wdc_size;
- if (bytes > *size) {
+ if ((u_int)bytes > *size) {
if (left != NULL) {
*left = bytes - *size;
}
@@ -329,7 +329,7 @@ wdc_default_read_raw_multi_2(chp, data, nbytes)
unsigned int nbytes;
{
if (data == NULL) {
- int i;
+ unsigned int i;
for (i = 0; i < nbytes; i += 2) {
bus_space_read_2(chp->cmd_iot, chp->cmd_ioh, 0);
@@ -351,7 +351,7 @@ wdc_default_write_raw_multi_2(chp, data, nbytes)
unsigned int nbytes;
{
if (data == NULL) {
- int i;
+ unsigned int i;
for (i = 0; i < nbytes; i += 2) {
bus_space_write_2(chp->cmd_iot, chp->cmd_ioh, 0, 0);
@@ -373,7 +373,7 @@ wdc_default_write_raw_multi_4(chp, data, nbytes)
unsigned int nbytes;
{
if (data == NULL) {
- int i;
+ unsigned int i;
for (i = 0; i < nbytes; i += 4) {
bus_space_write_4(chp->cmd_iot, chp->cmd_ioh, 0, 0);
@@ -395,7 +395,7 @@ wdc_default_read_raw_multi_4(chp, data, nbytes)
unsigned int nbytes;
{
if (data == NULL) {
- int i;
+ unsigned int i;
for (i = 0; i < nbytes; i += 4) {
bus_space_read_4(chp->cmd_iot, chp->cmd_ioh, 0);
@@ -2209,7 +2209,7 @@ wdc_ioctl_strategy(bp)
* Abort if physio broke up the transfer
*/
- if (bp->b_bcount != wi->wi_atareq.datalen) {
+ if ((u_long)bp->b_bcount != wi->wi_atareq.datalen) {
printf("physio split wd ioctl request... cannot proceed\n");
error = EIO;
goto bad;