fixed const-correctness

This commit is contained in:
cebix 2010-02-21 12:00:01 +00:00
parent 4f28f70207
commit d25bc19c6a
3 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
/*
* emul_op.cpp - 68k opcodes for ROM patches
*
* Basilisk II (C) 1997-2008 Christian Bauer
* Basilisk II (C) Christian Bauer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -70,7 +70,7 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
r->sr);
VideoQuitFullScreen();
#ifdef ENABLE_MON
char *arg[4] = {"mon", "-m", "-r", NULL};
const char *arg[4] = {"mon", "-m", "-r", NULL};
mon(3, arg);
#endif
QuitEmulator();
@ -575,7 +575,7 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
r->a[0], r->a[1], r->a[2], r->a[3], r->a[4], r->a[5], r->a[6], r->a[7],
r->sr);
#ifdef ENABLE_MON
char *arg[4] = {"mon", "-m", "-r", NULL};
const char *arg[4] = {"mon", "-m", "-r", NULL};
mon(3, arg);
#endif
QuitEmulator();

View File

@ -1,7 +1,7 @@
/*
* rom_patches.cpp - ROM patches
*
* Basilisk II (C) 1997-2008 Christian Bauer
* Basilisk II (C) Christian Bauer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -184,7 +184,7 @@ static void list_rom_resources(void)
// Mapping of Model IDs to Model names
struct mac_desc {
char *name;
const char *name;
int32 id;
};
@ -258,7 +258,7 @@ static void print_universal_info(uint32 info)
uint16 rom85 = ReadMacInt16(info + 20);
// Find model name
char *name = "unknown";
const char *name = "unknown";
for (int i=0; MacDesc[i].id >= 0; i++)
if (MacDesc[i].id == id + 6) {
name = MacDesc[i].name;

View File

@ -1,7 +1,7 @@
/*
* slot_rom.cpp - Slot declaration ROM
*
* Basilisk II (C) 1997-2008 Christian Bauer
* Basilisk II (C) Christian Bauer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -89,14 +89,14 @@ static void Word(uint16 data)
srom[p++] = data;
}
static void String(char *str)
static void String(const char *str)
{
while ((srom[p++] = *str++) != 0) ;
if (p & 1)
srom[p++] = 0;
}
static void PString(char *str)
static void PString(const char *str)
{
srom[p++] = strlen(str);
while ((srom[p++] = *str++) != 0) ;