aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2008-11-20 13:46:59 +0000
committerMax Horn2008-11-20 13:46:59 +0000
commitd230b17a9313a14c364c776611f377a503462a16 (patch)
tree2be3c1440b6580fc3b8fe39de916ec32d9b1704c /backends
parent7e97205417a5210e4ab019c83ce6c9fccddb6e8f (diff)
downloadscummvm-rg350-d230b17a9313a14c364c776611f377a503462a16.tar.gz
scummvm-rg350-d230b17a9313a14c364c776611f377a503462a16.tar.bz2
scummvm-rg350-d230b17a9313a14c364c776611f377a503462a16.zip
Fix warnings
svn-id: r35128
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ds/arm9/source/portdefs.h2
-rw-r--r--backends/platform/ds/arm9/source/scummconsole.c4
-rw-r--r--backends/platform/ds/arm9/source/scummconsole.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/portdefs.h b/backends/platform/ds/arm9/source/portdefs.h
index 16f3d8cc9b..2e5f2097d8 100644
--- a/backends/platform/ds/arm9/source/portdefs.h
+++ b/backends/platform/ds/arm9/source/portdefs.h
@@ -57,7 +57,7 @@ typedef signed int s32;
#ifdef __cplusplus
extern "C" {
#endif
-void consolePrintf(const char* s, ...);
+int consolePrintf(const char* s, ...);
#ifdef __cplusplus
}
#endif
diff --git a/backends/platform/ds/arm9/source/scummconsole.c b/backends/platform/ds/arm9/source/scummconsole.c
index 2145b47353..f4ae0bca8b 100644
--- a/backends/platform/ds/arm9/source/scummconsole.c
+++ b/backends/platform/ds/arm9/source/scummconsole.c
@@ -440,7 +440,7 @@ void printF(int w, float f)
*/
}
-void consolePrintf(const char* s, ...)
+int consolePrintf(const char* s, ...)
{
int w = 1, z = 0;
@@ -518,6 +518,8 @@ void consolePrintf(const char* s, ...)
s++;
}
va_end(argp);
+
+ return 0;
}
void consolePutString(int x, int y, char* s)
diff --git a/backends/platform/ds/arm9/source/scummconsole.h b/backends/platform/ds/arm9/source/scummconsole.h
index 01fdfc2f04..543ffc9409 100644
--- a/backends/platform/ds/arm9/source/scummconsole.h
+++ b/backends/platform/ds/arm9/source/scummconsole.h
@@ -45,7 +45,7 @@ void poo(u8 p);
void consoleInit(u16* font, u16* charBase, u16 numCharacters, u8 charStart, u16* map, u8 pal, u8 bitDepth);
void consoleInitDefault(u16* map, u16* charBase, u8 bitDepth);
-void consolePrintf(const char* s, ...);
+int consolePrintf(const char* s, ...);
void consolePrintSet(int x, int y);