aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-10 16:24:40 +0000
committerFilippos Karapetis2009-03-10 16:24:40 +0000
commitd8824d631afb553b9e9a637f8912f7f5225621c1 (patch)
treedc5c3a6bbc89d2afe48828d90aed0fea810d20c1
parent3cddcb1660c32b902052e0e65b75e434e0f1035c (diff)
downloadscummvm-rg350-d8824d631afb553b9e9a637f8912f7f5225621c1.tar.gz
scummvm-rg350-d8824d631afb553b9e9a637f8912f7f5225621c1.tar.bz2
scummvm-rg350-d8824d631afb553b9e9a637f8912f7f5225621c1.zip
Fixed warnings
svn-id: r39298
-rw-r--r--engines/sci/engine/scriptdebug.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index 7a104c8df0..020945ee7c 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -87,7 +87,6 @@ char inputbuf[256] = "";
const char *_debug_get_input_default() {
char newinpbuf[256];
- char *newline;
printf("> ");
fgets(newinpbuf, 254, stdin);
@@ -426,12 +425,11 @@ static void _c_single_seg_info(EngineState *s, MemObject *mobj) {
break;
case MEM_OBJ_SYS_STRINGS: {
- SystemStrings *strings = &(mobj->data.sys_strings);
- int i;
-
sciprintf("system string table - viewing currently disabled\n");
#if 0
- for (i = 0; i < SYS_STRINGS_MAX; i++)
+ SystemStrings *strings = &(mobj->data.sys_strings);
+
+ for (int i = 0; i < SYS_STRINGS_MAX; i++)
if (strings->strings[i].name)
sciprintf(" %s[%d]=\"%s\"\n", strings->strings[i].name, strings->strings[i].max_size, strings->strings[i].value);
#endif