summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-13 22:56:59 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-13 22:56:59 -0800
commit62fdcbc92ba3c4a71742293d75d853c95eb5f3c7 (patch)
treedce685f5cf74848f6d6a85f93689cf8dec50e89b /util.c
parent802454482c2843234a19a06f6acce360e0be3d60 (diff)
Selecting a second game from the menu now works
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 697ba1b..57a59a2 100644
--- a/util.c
+++ b/util.c
@@ -19,9 +19,9 @@
#define warning_printf(msg, args) __android_log_vprint(ANDROID_LOG_WARN, "BlastEm", msg, args)
#define fatal_printf(msg, args) __android_log_vprint(ANDROID_LOG_FATAL, "BlastEm", msg, args)
#else
-#define info_puts(msg) fputs(stdout, msg);
-#define warning_puts(msg) fputs(stderr, msg);
-#define fatal_puts(msg) fputs(stderr, msg);
+#define info_puts(msg) fputs(msg, stdout);
+#define warning_puts(msg) fputs(msg, stderr);
+#define fatal_puts(msg) fputs(msg, stderr);
#define info_printf(msg, args) vprintf(msg, args)
#define warning_printf(msg, args) vfprintf(stderr, msg, args)
@@ -388,7 +388,7 @@ char *read_bundled_file(char *name, long *sizeret)
}
return NULL;
}
- char *pieces[] = {exe_dir, "/", name};
+ char const *pieces[] = {exe_dir, "/", name};
char *path = alloc_concat_m(3, pieces);
FILE *f = fopen(path, "rb");
free(path);