Constification
This commit is contained in:
@@ -1381,10 +1381,10 @@ mem_write(uint32_t addr, uint8_t val, void *priv)
|
||||
static uint8_t
|
||||
mem_read(uint32_t addr, void *priv)
|
||||
{
|
||||
hdc_t *dev = (hdc_t *) priv;
|
||||
uint32_t ptr;
|
||||
uint32_t mask = 0;
|
||||
uint8_t ret = 0xff;
|
||||
const hdc_t *dev = (hdc_t *) priv;
|
||||
uint32_t ptr;
|
||||
uint32_t mask = 0;
|
||||
uint8_t ret = 0xff;
|
||||
|
||||
/* Ignore accesses to anything below the configured address,
|
||||
needed because of the emulator's 4k mapping granularity. */
|
||||
@@ -1533,8 +1533,8 @@ loadhd(hdc_t *dev, int c, int d, UNUSED(const char *fn))
|
||||
static void
|
||||
set_switches(hdc_t *dev, hd_type_t *hdt, int num)
|
||||
{
|
||||
drive_t *drive;
|
||||
int e;
|
||||
const drive_t *drive;
|
||||
int e;
|
||||
|
||||
dev->switches = 0x00;
|
||||
|
||||
@@ -1784,8 +1784,8 @@ st506_init(const device_t *info)
|
||||
static void
|
||||
st506_close(void *priv)
|
||||
{
|
||||
hdc_t *dev = (hdc_t *) priv;
|
||||
drive_t *drive;
|
||||
hdc_t *dev = (hdc_t *) priv;
|
||||
const drive_t *drive;
|
||||
|
||||
for (uint8_t d = 0; d < MFM_NUM; d++) {
|
||||
drive = &dev->drives[d];
|
||||
|
||||
Reference in New Issue
Block a user