From b0490c4f8cc4ed0d5c4f1fa2e9276eb00739917a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 27 Jul 2014 17:17:23 +0200 Subject: [PATCH] Build fix --- frontend/frontend.c | 5 +++-- frontend/frontend.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/frontend.c b/frontend/frontend.c index b73579f4b8..f1d3e50d98 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -272,10 +272,11 @@ void main_exit(args_type() args) driver.frontend_ctx->shutdown(false); } -void free_args(struct rarch_main_wrap *wrap_args, char **argv_copy, unsigned argv_size) +void free_args(void *data, char **argv_copy, unsigned argv_size) { unsigned i; - if (!wrap_args->touched) + struct rarch_main_wrap *wrap_args = (struct rarch_main_wrap*)data; + if (!wrap_args || !wrap_args->touched) return; for (i = 0; i < argv_size; i++) diff --git a/frontend/frontend.h b/frontend/frontend.h index 2760f23063..f9c01469d0 100644 --- a/frontend/frontend.h +++ b/frontend/frontend.h @@ -38,7 +38,7 @@ extern "C" { int main_entry_iterate(signature(), args_type() args); void main_exit(args_type() args); returntype main_entry(signature()); -void free_args(struct rarch_main_wrap *wrap_args, char **argv_copy, unsigned argv_size); +void free_args(void *data, char **argv_copy, unsigned argv_size); #ifdef __cplusplus }