diff options
author | D G Turner | 2019-09-30 05:50:44 +0100 |
---|---|---|
committer | D G Turner | 2019-09-30 05:50:44 +0100 |
commit | 944b63cdce27ee487ba0ee34de331f63531de6af (patch) | |
tree | b73aaa4d4195e9eb80b79423bd32822bb74e99ea /engines/glk/adrift | |
parent | 1e3576768c6ca898b4a99f70085ebde4623d58ca (diff) | |
download | scummvm-rg350-944b63cdce27ee487ba0ee34de331f63531de6af.tar.gz scummvm-rg350-944b63cdce27ee487ba0ee34de331f63531de6af.tar.bz2 scummvm-rg350-944b63cdce27ee487ba0ee34de331f63531de6af.zip |
GLK: ADRIFT: Add const qualifier for some function call parameters
Diffstat (limited to 'engines/glk/adrift')
-rw-r--r-- | engines/glk/adrift/scgamest.cpp | 2 | ||||
-rw-r--r-- | engines/glk/adrift/scinterf.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/adrift/scgamest.cpp b/engines/glk/adrift/scgamest.cpp index ab92b413de..b928258dfe 100644 --- a/engines/glk/adrift/scgamest.cpp +++ b/engines/glk/adrift/scgamest.cpp @@ -793,7 +793,7 @@ sc_gameref_t gs_create(sc_var_setref_t vars, sc_prop_setref_t bundle, sc_filterr * * Return TRUE if pointer is a valid game, FALSE otherwise. */ -sc_bool gs_is_game_valid(sc_gameref_t game) { +sc_bool gs_is_game_valid(const sc_gameref_t game) { return game && game->magic == GAME_MAGIC; } diff --git a/engines/glk/adrift/scinterf.cpp b/engines/glk/adrift/scinterf.cpp index c01d99a511..a4cf650691 100644 --- a/engines/glk/adrift/scinterf.cpp +++ b/engines/glk/adrift/scinterf.cpp @@ -372,7 +372,7 @@ sc_game sc_game_from_callback(sc_int(*callback)(void *, sc_byte *, sc_int), void * Common function to verify that the game passed in to functions below * is a valid game. Returns TRUE on game error, FALSE if okay. */ -static sc_bool if_game_error(sc_gameref_t game, const sc_char *function_name) { +static sc_bool if_game_error(const sc_gameref_t game, const sc_char *function_name) { /* Check for invalid game -- null pointer or bad magic. */ if (!gs_is_game_valid(game)) { if (game) |