diff options
author | Torbjörn Andersson | 2006-05-24 19:51:37 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-24 19:51:37 +0000 |
commit | 4a583216fbfd7eee2197bac249c3f62007c2d4e4 (patch) | |
tree | 1f4d29458dd829d0d8f11b386040ec1a18b12a1a /engines/agi/agi_v2.cpp | |
parent | 8d954b7ae50c0391ba49ceeb26294a21bbe5b77f (diff) | |
download | scummvm-rg350-4a583216fbfd7eee2197bac249c3f62007c2d4e4.tar.gz scummvm-rg350-4a583216fbfd7eee2197bac249c3f62007c2d4e4.tar.bz2 scummvm-rg350-4a583216fbfd7eee2197bac249c3f62007c2d4e4.zip |
Fixed most - not all - GCC warnings.
svn-id: r22614
Diffstat (limited to 'engines/agi/agi_v2.cpp')
-rw-r--r-- | engines/agi/agi_v2.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/agi/agi_v2.cpp b/engines/agi/agi_v2.cpp index deb849c200..f03554e4fc 100644 --- a/engines/agi/agi_v2.cpp +++ b/engines/agi/agi_v2.cpp @@ -34,8 +34,8 @@ static int agi_v2_deinit(void); static int agi_v2_detect_game(); static int agi_v2_load_resource(int, int); static int agi_v2_unload_resource(int, int); -static int agi_v2_load_objects(char *); -static int agi_v2_load_words(char *); +static int agi_v2_load_objects(const char *); +static int agi_v2_load_words(const char *); struct agi_loader agi_v2 = { 2, @@ -60,17 +60,15 @@ static int agi_v2_detect_game() { return v2id_game(); } -static int agi_v2_load_dir(struct agi_dir *agid, char *fname) { +static int agi_v2_load_dir(struct agi_dir *agid, const char *fname) { Common::File fp; uint8 *mem; uint32 flen; - unsigned int i; - char *path; + uint i; - path = fname; - report("Loading directory: %s\n", path); + report("Loading directory: %s\n", fname); - if ((!fp.open(path))) { + if (!fp.open(fname)) { return err_BadFileOpen; } @@ -298,11 +296,11 @@ int agi_v2_load_resource(int t, int n) { return ec; } -static int agi_v2_load_objects(char *fname) { +static int agi_v2_load_objects(const char *fname) { return load_objects(fname); } -static int agi_v2_load_words(char *fname) { +static int agi_v2_load_words(const char *fname) { return load_words(fname); } |