From 62fdcbc92ba3c4a71742293d75d853c95eb5f3c7 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 13 Nov 2015 22:56:59 -0800 Subject: Selecting a second game from the menu now works --- util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util.c') 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); -- cgit v1.2.3