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/savegame.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/savegame.cpp')
-rw-r--r-- | engines/agi/savegame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/agi/savegame.cpp b/engines/agi/savegame.cpp index 77c46394e2..8ec2454298 100644 --- a/engines/agi/savegame.cpp +++ b/engines/agi/savegame.cpp @@ -124,7 +124,7 @@ void replay_image_stack_call(uint8 type, int16 p1, int16 p2, int16 p3, /* */ -static char *strSig = "AGI:"; +static const char *strSig = "AGI:"; static void write_uint8(Common::File *f, int8 val) { f->write(&val, 1); @@ -162,7 +162,7 @@ static int16 read_sint16(Common::File *f) { return (int16) ((buf[0] << 8) | buf[1]); } -static void write_string(Common::File *f, char *s) { +static void write_string(Common::File *f, const char *s) { write_sint16(f, (int16) strlen(s)); f->write(s, strlen(s)); } @@ -173,7 +173,7 @@ static void read_string(Common::File *f, char *s) { s[size] = (char)0; } -static void write_bytes(Common::File *f, char *s, int16 size) { +static void write_bytes(Common::File *f, const char *s, int16 size) { f->write(s, size); } @@ -187,7 +187,7 @@ static void read_bytes(Common::File *f, char *s, int16 size) { */ #define SAVEGAME_VERSION 1 -int save_game(char *s, char *d) { +int save_game(char *s, const char *d) { int16 i; struct image_stack_element *ptr = image_stack; Common::File f; @@ -659,7 +659,7 @@ int savegame_simple() { int savegame_dialog() { char path[MAX_PATH]; char *desc; - char *buttons[] = { "Do as I say!", "I regret", NULL }; + const char *buttons[] = { "Do as I say!", "I regret", NULL }; char dstr[200]; int rc, slot = 0; int hm, vm, hp, vp; /* box margins */ |