diff options
-rw-r--r-- | engines/sci/engine/savegame.cfsml | 2 | ||||
-rw-r--r-- | engines/sci/engine/savegame.cpp | 2 | ||||
-rw-r--r-- | engines/sci/include/versions.h | 2 | ||||
-rw-r--r-- | engines/sci/scicore/versions.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml index b2c521f545..4c18fb1131 100644 --- a/engines/sci/engine/savegame.cfsml +++ b/engines/sci/engine/savegame.cfsml @@ -88,7 +88,7 @@ write_sci_version(FILE *fh, sci_version_t *foo) int read_sci_version(FILE *fh, sci_version_t *foo, const char *lastval, int *line, int *hiteof) { - return version_parse((char *)lastval, foo); + return version_parse(lastval, foo); } void diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 570ee27699..06dfb87329 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -88,7 +88,7 @@ write_sci_version(FILE *fh, sci_version_t *foo) int read_sci_version(FILE *fh, sci_version_t *foo, const char *lastval, int *line, int *hiteof) { - return version_parse((char *)lastval, foo); + return version_parse(lastval, foo); } void diff --git a/engines/sci/include/versions.h b/engines/sci/include/versions.h index 5cf4c3c00d..e96dd47afc 100644 --- a/engines/sci/include/versions.h +++ b/engines/sci/include/versions.h @@ -143,7 +143,7 @@ version_require_later_than(struct _state *s, sci_version_t version); */ int -version_parse(char *vn, sci_version_t *result); +version_parse(const char *vn, sci_version_t *result); /* Parse a string containing an SCI version number ** Parameters: (char *) vn: The string to parse ** Returns : (int) 0 on success, 1 on failure diff --git a/engines/sci/scicore/versions.cpp b/engines/sci/scicore/versions.cpp index a0fb0267b9..2dfb539374 100644 --- a/engines/sci/scicore/versions.cpp +++ b/engines/sci/scicore/versions.cpp @@ -248,7 +248,7 @@ version_require_later_than(state_t *s, sci_version_t version) } int -version_parse(char *vn, sci_version_t *result) +version_parse(const char *vn, sci_version_t *result) { char *endptr[3]; int major = strtol(vn, &endptr[0], 10); |