diff options
author | Simon Howard | 2014-04-19 03:39:55 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-19 03:39:55 -0400 |
commit | 7d238f61488d550b5bfbe5075b923723bb5d0cfb (patch) | |
tree | 8dda3ca41848577f7331eaae705554e0afea726c /src/setup/mode.c | |
parent | 48e96443151db631e1153d459e850c49a96ccb29 (diff) | |
download | chocolate-doom-7d238f61488d550b5bfbe5075b923723bb5d0cfb.tar.gz chocolate-doom-7d238f61488d550b5bfbe5075b923723bb5d0cfb.tar.bz2 chocolate-doom-7d238f61488d550b5bfbe5075b923723bb5d0cfb.zip |
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.
Diffstat (limited to 'src/setup/mode.c')
-rw-r--r-- | src/setup/mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |