Revision 3f4cb3d3 hw/scsi-disk.c

b/hw/scsi-disk.c
335 335
        BADF("Bad buffer tag 0x%x\n", tag);
336 336
        return NULL;
337 337
    }
338
    return r->iov.iov_base;
338
    return (uint8_t *)r->iov.iov_base;
339 339
}
340 340

  
341 341
/* Execute a scsi command.  Returns the length of the data expected by the
......
365 365
    /* ??? Tags are not unique for different luns.  We only implement a
366 366
       single lun, so this should not matter.  */
367 367
    r = scsi_new_request(s, tag);
368
    outbuf = r->iov.iov_base;
368
    outbuf = (uint8_t *)r->iov.iov_base;
369 369
    is_write = 0;
370 370
    DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
371 371
    switch (command >> 5) {

Also available in: Unified diff