From 725a9d21f904fd13c2e2727091ea4efc48921cdb Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 23 Feb 2006 07:59:25 +0000 Subject: Fixed some of the compiler warnings. svn-id: r20819 --- engines/cine/script.cpp | 4 ++-- engines/cine/texte.cpp | 2 +- engines/cine/texte.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/cine') diff --git a/engines/cine/script.cpp b/engines/cine/script.cpp index 6f39fe562f..8764131073 100644 --- a/engines/cine/script.cpp +++ b/engines/cine/script.cpp @@ -487,7 +487,7 @@ void addScriptToList0(u16 idx) { #ifdef _DEBUG #define DEBUG_SCRIPT debugScript -void debugScript(int currentLine, char *string, ...) { +void debugScript(int currentLine, const char *string, ...) { va_list va; va_start(va, string); @@ -497,7 +497,7 @@ void debugScript(int currentLine, char *string, ...) { } #else #define DEBUG_SCRIPT debugScriptInline -void debugScriptInline(int currentLine, char *string, ...) { +void debugScriptInline(int currentLine, const char *string, ...) { } #endif diff --git a/engines/cine/texte.cpp b/engines/cine/texte.cpp index 60d45e303a..1714411962 100644 --- a/engines/cine/texte.cpp +++ b/engines/cine/texte.cpp @@ -30,7 +30,7 @@ u8 textTable[256][2][16 * 8]; void generateMask(u8 *sprite, u8 *mask, u16 size, u8 transparency); -void loadTextData(char *pFileName, u8 *pDestinationBuffer) { +void loadTextData(const char *pFileName, u8 *pDestinationBuffer) { Common::File pFileHandle; u16 entrySize; u16 numEntry; diff --git a/engines/cine/texte.h b/engines/cine/texte.h index 495bd95c02..71ef23509c 100644 --- a/engines/cine/texte.h +++ b/engines/cine/texte.h @@ -28,6 +28,6 @@ extern u8 *textDataPtr; extern u8 textTable[256][2][16 * 8]; -void loadTextData(char *pFileName, u8 *pDestinationBuffer); +void loadTextData(const char *pFileName, u8 *pDestinationBuffer); #endif -- cgit v1.2.3