summaryrefslogtreecommitdiff
path: root/sys/dev/atapi
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-09 06:57:59 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-09 06:57:59 +0000
commit336f6bd80e24e47da53dd4787088c201e79f1703 (patch)
treee3b1d1940927206d09bd2cbcb5b43bd1e802833d /sys/dev/atapi
parentb662fe62a2a46f3c05b99110dd7c42df4f2b8ac7 (diff)
Pedant mode: avoid mixed signedness comparisons.
Diffstat (limited to 'sys/dev/atapi')
-rw-r--r--sys/dev/atapi/acd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index aed0b8a59b7..5384fd32875 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.9 1996/08/08 16:52:25 niklas Exp $ */
+/* $OpenBSD: acd.c,v 1.10 1996/08/09 06:57:58 niklas Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -771,8 +771,8 @@ acdioctl(dev, cmd, addr, flag, p)
struct cd_sub_channel_info data;
int len = args->data_len;
- if (len > sizeof(data) ||
- len < sizeof(struct cd_sub_channel_header))
+ if (len > (int)sizeof(data) ||
+ len < (int)sizeof(struct cd_sub_channel_header))
return EINVAL;
error = acd_read_subchannel(acd, args->address_format,
@@ -808,8 +808,8 @@ acdioctl(dev, cmd, addr, flag, p)
int len = te->data_len;
int ntracks;
- if (len > sizeof(toc.tab) ||
- len < sizeof(struct cd_toc_entry))
+ if (len > (int)sizeof(toc.tab) ||
+ len < (int)sizeof(struct cd_toc_entry))
return EINVAL;
error = acd_read_toc(acd, te->address_format,
@@ -1299,7 +1299,7 @@ acd_read_subchannel(acd, mode, format, track, data, len)
atapi_cmd.opcode = ATAPI_READ_SUBCHANNEL;
if (mode == CD_MSF_FORMAT)
atapi_cmd.flags[0] |= SUBCHAN_MSF;
- if (len > sizeof(struct cd_sub_channel_header))
+ if (len > (int)sizeof(struct cd_sub_channel_header))
atapi_cmd.flags[1] |= SUBCHAN_SUBQ;
atapi_cmd.subchan_format = format;
atapi_cmd.track = track;