Fix up some warnings and silly errors.

This commit is contained in:
waltje
2018-10-16 20:05:13 -04:00
parent 22379f55ad
commit 3e4f5c0ed9
6 changed files with 12 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
*
* Emulation of SCSI (and ATAPI) CD-ROM drives.
*
* Version: @(#)scsi_cdrom.c 1.0.1 2018/10/15
* Version: @(#)scsi_cdrom.c 1.0.2 2018/10/16
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -354,7 +354,7 @@ int scsi_cdrom_do_log = ENABLE_SCSI_CDROM_LOG;
#endif
static void
void
scsi_cdrom_log(int level, const char *fmt, ...)
{
#ifdef ENABLE_SCSI_CDROM_LOG

View File

@@ -8,7 +8,7 @@
*
* Emulation of SCSI fixed disks.
*
* Version: @(#)scsi_disk.c 1.0.14 2018/10/15
* Version: @(#)scsi_disk.c 1.0.15 2018/10/16
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -171,7 +171,7 @@ int scsi_disk_do_log = ENABLE_SCSI_DISK_LOG;
#endif
static void
void
scsi_disk_log(int level, const char *fmt, ...)
{
#ifdef ENABLE_SCSI_DISK_LOG

View File

@@ -537,7 +537,7 @@ x54x_bios_command(x54x_t *x54x, uint8_t max_id, BIOSCMD *cmd, int8_t islba)
case 0x11: /* Recalibrate */
target_check(cmd->id, cmd->lun);
cdb[0] = cdb[0] = bios_cmd_to_scsi[cmd->command];
cdb[0] = bios_cmd_to_scsi[cmd->command];
cdb[1] = (cmd->lun & 7) << 5;
ret = x54x_bios_scsi_command(dev, cdb, NULL, sector_len, dma_address);