From ba02f4c341ab798b8da15c745fc34262ae5a5453 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Fri, 29 Dec 2006 13:04:38 +0000 Subject: Avoid void * arithmetic, okay deraadt@, suggestions from millert@ --- sys/scsi/scsiconf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 1e77ffda3d3..388bd1fa500 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.123 2006/11/28 23:59:45 dlg Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.124 2006/12/29 13:04:37 pedro Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -869,12 +869,13 @@ bad: * the patterns for the particular driver. */ const void * -scsi_inqmatch(struct scsi_inquiry_data *inqbuf, const void *base, int nmatches, - int matchsize, int *bestpriority) +scsi_inqmatch(struct scsi_inquiry_data *inqbuf, const void *_base, + int nmatches, int matchsize, int *bestpriority) { u_int8_t type; int removable; const void *bestmatch; + const unsigned char *base = (const unsigned char *)_base; /* Include the qualifier to catch vendor-unique types. */ type = inqbuf->device; -- cgit v1.2.3