diff options
author | Willem Jan Palenstijn | 2009-02-15 17:26:59 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-02-15 17:26:59 +0000 |
commit | 8392dd3aab36824d53d957fbf0879b6d95abe24e (patch) | |
tree | e7ed019158a5bfbdc5c751383a6105a9578f3dc9 | |
parent | 9920d40924f36236d2783181ad24b830d753e7f9 (diff) | |
download | scummvm-rg350-8392dd3aab36824d53d957fbf0879b6d95abe24e.tar.gz scummvm-rg350-8392dd3aab36824d53d957fbf0879b6d95abe24e.tar.bz2 scummvm-rg350-8392dd3aab36824d53d957fbf0879b6d95abe24e.zip |
consts
svn-id: r38272
-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); |