1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

PDP10, PDP11, VAX: const cleanup

This commit is contained in:
Mark Pizzolato
2015-02-13 06:18:24 -08:00
parent 68efe4d36a
commit ef9d1adce1
77 changed files with 479 additions and 499 deletions

View File

@@ -1183,9 +1183,9 @@ static char *eventtypes[] = {
""
};
#else
static char *eventtypes[SDL_LASTEVENT];
static const char *eventtypes[SDL_LASTEVENT];
#endif
static char *windoweventtypes[256];
static const char *windoweventtypes[256];
static t_bool initialized = FALSE;
if (!initialized) {
@@ -1604,7 +1604,7 @@ for (i = 0; i < SDL_GetNumRenderDrivers(); ++i) {
}
else {
uint32 j, k;
static struct {uint32 format; char *name;} PixelFormats[] = {
static struct {uint32 format; const char *name;} PixelFormats[] = {
{SDL_PIXELFORMAT_INDEX1LSB, "Index1LSB"},
{SDL_PIXELFORMAT_INDEX1MSB, "Index1MSB"},
{SDL_PIXELFORMAT_INDEX4LSB, "Index4LSB"},
@@ -1677,7 +1677,7 @@ if (vid_active) {
fprintf (st, " Currently Active Renderer: %s\n", info.name);
}
if (1) {
static char *hints[] = {
static const char *hints[] = {
#if defined (SDL_HINT_FRAMEBUFFER_ACCELERATION)
SDL_HINT_FRAMEBUFFER_ACCELERATION ,
#endif
@@ -1889,5 +1889,5 @@ return SCPE_OK;
#endif /* defined(HAVE_LIBSDL) */
#else /* !defined(USE_SIM_VIDEO) */
static char *dummy_declaration = "Something to compile";
static const char *dummy_declaration = "Something to compile";
#endif /* defined(USE_SIM_VIDEO) */