diff options
| author | thorpej <thorpej@NetBSD.org> | 2002-11-09 18:52:20 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2002-11-09 18:52:20 +0000 |
| commit | 73f78d5e6194415c7b7afb3df25b56e41cce2d67 (patch) | |
| tree | fb1540a4599ec504aef572141dda5c14308a9943 /sys/dev | |
| parent | a1ef3f204ef4c48265901aa51730d1094121809f (diff) | |
Fix signed/unsigned comparison warnings.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/z8530tty.c | 7 | ||||
| -rw-r--r-- | sys/dev/scsipi/cd.c | 8 | ||||
| -rw-r--r-- | sys/dev/scsipi/scsipi_base.c | 7 | ||||
| -rw-r--r-- | sys/dev/scsipi/scsipiconf.c | 6 |
4 files changed, 15 insertions, 13 deletions
diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c index 8a003bca44e..26d43cf5756 100644 --- a/sys/dev/ic/z8530tty.c +++ b/sys/dev/ic/z8530tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: z8530tty.c,v 1.85 2002/10/23 09:13:19 jdolecek Exp $ */ +/* $NetBSD: z8530tty.c,v 1.86 2002/11/09 19:22:54 thorpej Exp $ */ /*- * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999 @@ -99,7 +99,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.85 2002/10/23 09:13:19 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.86 2002/11/09 19:22:54 thorpej Exp $"); #include "opt_kgdb.h" @@ -1028,7 +1028,8 @@ zsparam(tp, t) { struct zstty_softc *zst = device_lookup(&zstty_cd, ZSUNIT(tp->t_dev)); struct zs_chanstate *cs = zst->zst_cs; - int ospeed, cflag; + int ospeed; + tcflag_t cflag; u_char tmp3, tmp4, tmp5; int s, error; diff --git a/sys/dev/scsipi/cd.c b/sys/dev/scsipi/cd.c index c40759882f2..807bbc32551 100644 --- a/sys/dev/scsipi/cd.c +++ b/sys/dev/scsipi/cd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd.c,v 1.169 2002/11/01 11:31:59 mrg Exp $ */ +/* $NetBSD: cd.c,v 1.170 2002/11/09 18:58:26 thorpej Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.169 2002/11/01 11:31:59 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.170 2002/11/09 18:58:26 thorpej Exp $"); #include "rnd.h" @@ -1247,7 +1247,7 @@ cdioctl(dev, cmd, addr, flag, p) struct ioc_read_subchannel *args = (struct ioc_read_subchannel *)addr; struct cd_sub_channel_info data; - int len = args->data_len; + u_int len = args->data_len; if (len > sizeof(data) || len < sizeof(struct cd_sub_channel_header)) @@ -1280,7 +1280,7 @@ cdioctl(dev, cmd, addr, flag, p) (struct ioc_read_toc_entry *)addr; struct ioc_toc_header *th; struct cd_toc_entry *cte; - int len = te->data_len; + u_int len = te->data_len; int ntracks; th = &toc.header; diff --git a/sys/dev/scsipi/scsipi_base.c b/sys/dev/scsipi/scsipi_base.c index 8030cd73d14..e830cf3cf5e 100644 --- a/sys/dev/scsipi/scsipi_base.c +++ b/sys/dev/scsipi/scsipi_base.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsipi_base.c,v 1.80 2002/10/04 03:41:50 soren Exp $ */ +/* $NetBSD: scsipi_base.c,v 1.81 2002/11/09 19:02:27 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.80 2002/10/04 03:41:50 soren Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.81 2002/11/09 19:02:27 thorpej Exp $"); #include "opt_scsi.h" @@ -327,7 +327,8 @@ scsipi_get_tag(xs) struct scsipi_xfer *xs; { struct scsipi_periph *periph = xs->xs_periph; - int word, bit, tag; + int bit, tag; + u_int word; for (word = 0; word < PERIPH_NTAGWORDS; word++) { bit = ffs(periph->periph_freetags[word]); diff --git a/sys/dev/scsipi/scsipiconf.c b/sys/dev/scsipi/scsipiconf.c index 0d9cf8f333c..ee9008ef2bb 100644 --- a/sys/dev/scsipi/scsipiconf.c +++ b/sys/dev/scsipi/scsipiconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsipiconf.c,v 1.18 2002/10/04 17:53:35 soren Exp $ */ +/* $NetBSD: scsipiconf.c,v 1.19 2002/11/09 19:03:41 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -55,7 +55,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scsipiconf.c,v 1.18 2002/10/04 17:53:35 soren Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scsipiconf.c,v 1.19 2002/11/09 19:03:41 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -108,7 +108,7 @@ scsipi_alloc_periph(malloc_flag) int malloc_flag; { struct scsipi_periph *periph; - int i; + u_int i; periph = malloc(sizeof(*periph), M_DEVBUF, malloc_flag|M_ZERO); if (periph == NULL) |
