From 7d238f61488d550b5bfbe5075b923723bb5d0cfb Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 19 Apr 2014 03:39:55 -0400 Subject: setup: Make iwad_t pointers const. The table of IWAD data is stored in const memory, so make all iwad_t pointers const to fix compiler warnings. --- src/setup/mode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/setup/mode.c') diff --git a/src/setup/mode.c b/src/setup/mode.c index 1ad68bd1..bc82c3d4 100644 --- a/src/setup/mode.c +++ b/src/setup/mode.c @@ -47,7 +47,7 @@ #include "mode.h" GameMission_t gamemission; -static iwad_t **iwads; +static const iwad_t **iwads; typedef struct { @@ -280,7 +280,7 @@ static void OpenGameSelectDialog(GameSelectCallback callback) { mission_config_t *mission = NULL; txt_window_t *window; - iwad_t **iwads; + const iwad_t **iwads; int num_games; int i; @@ -380,7 +380,7 @@ char *GetGameTitle(void) return game_title; } -iwad_t **GetIwads(void) +const iwad_t **GetIwads(void) { return iwads; } -- cgit v1.2.3