And yet more *nix compile fixes.
This commit is contained in:
@@ -41,6 +41,7 @@ typedef struct ioctl_t {
|
||||
cdrom_t *dev;
|
||||
void *log;
|
||||
int toc_valid;
|
||||
HANDLE handle;
|
||||
char path[256];
|
||||
} ioctl_t;
|
||||
|
||||
@@ -76,9 +77,8 @@ ioctl_open_handle(UNUSED(ioctl_t *ioctl))
|
||||
static void
|
||||
ioctl_read_toc(ioctl_t *ioctl)
|
||||
{
|
||||
if (!ioctl->toc_valid) {
|
||||
if (!ioctl->toc_valid)
|
||||
ioctl->toc_valid = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared functions. */
|
||||
@@ -89,15 +89,6 @@ ioctl_get_track_info(UNUSED(const void *local), UNUSED(const uint32_t track),
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
ioctl_get_raw_track_info(const void *local, UNUSED(int *num), UNUSED(uint8_t *rti))
|
||||
{
|
||||
ioctl_t *ioctl = (ioctl_t *) local;
|
||||
|
||||
if (!ioctl->toc_valid)
|
||||
ioctl->toc_valid = 1;
|
||||
}
|
||||
|
||||
static void
|
||||
ioctl_get_raw_track_info(UNUSED(const void *local), int *num, uint8_t *rti)
|
||||
{
|
||||
@@ -126,9 +117,6 @@ ioctl_read_sector(const void *local, uint8_t *buffer, uint32_t const sector)
|
||||
|
||||
ioctl_open_handle(ioctl);
|
||||
|
||||
/* Raw */
|
||||
ioctl_log("Raw\n");
|
||||
|
||||
ioctl_close_handle(ioctl);
|
||||
|
||||
ioctl_log("ReadSector sector=%d.\n", sector);
|
||||
|
||||
Reference in New Issue
Block a user