gcc4 fix: correct of couple of casting errors picked up by gcc4.
This commit is contained in:
parent
7e0fcda313
commit
26264a025e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sd.c,v 1.9 2006/01/25 18:28:27 christos Exp $ */
|
||||
/* $NetBSD: sd.c,v 1.10 2006/08/04 02:09:19 mhitch Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994 Rolf Grossmann
|
||||
* All rights reserved.
|
||||
|
@ -138,7 +138,7 @@ sdgetinfo(struct sd_softc *ss)
|
|||
|
||||
ss->sc_pinfo.offset[ss->sc_part] = 0; /* read absolute sector */
|
||||
error = sdstrategy(ss, F_READ, NEXT68K_LABEL_SECTOR,
|
||||
NEXT68K_LABEL_SIZE+NEXT68K_LABEL_OFFSET, io_buf, &i);
|
||||
NEXT68K_LABEL_SIZE+NEXT68K_LABEL_OFFSET, io_buf, (unsigned int *)&i);
|
||||
if (error != 0) {
|
||||
DPRINTF(("sdgetinfo: sdstrategy error %d\n", error));
|
||||
return(ERDLAB);
|
||||
|
@ -277,7 +277,7 @@ sdstrategy(struct sd_softc *ss, int rw, daddr_t dblk, size_t size,
|
|||
cdb.length[1] = nblks & 0xff;
|
||||
|
||||
error = scsiicmd(ss->sc_unit, ss->sc_lun,
|
||||
(u_char *)&cdb, sizeof(cdb), (unsigned char *)buf + *rsize, &tsize);
|
||||
(u_char *)&cdb, sizeof(cdb), (char *)buf + *rsize, &tsize);
|
||||
if (error != 0)
|
||||
{
|
||||
DPRINTF(("sdstrategy: scsiicmd failed: %d = %s.\n", error, strerror(error)));
|
||||
|
|
Loading…
Reference in New Issue