From 905a2046f42ef4664a8b8409dbcd1f9f6896309b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 9 Jan 2013 05:08:08 +0100 Subject: [PATCH] (NGC) Fix build --- frontend/platform/platform_gx.c | 2 +- gx/gx_input.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index e10b380820..f413793620 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -597,7 +597,7 @@ static void system_exitspawn(void) static void system_deinit(void) { #if defined(HAVE_LOGGER) || defined(HAVE_FILE_LOGGER) - inl_logger_deinit() + inl_logger_deinit(); #endif } diff --git a/gx/gx_input.c b/gx/gx_input.c index 2e74c54daa..5808a17632 100644 --- a/gx/gx_input.c +++ b/gx/gx_input.c @@ -280,11 +280,12 @@ static void gx_input_poll(void *data) for (unsigned port = 0; port < MAX_PADS; port++) { - uint32_t type = 0; uint32_t down = 0; uint64_t *state_cur = &pad_state[port]; #ifdef HW_RVL + uint32_t type = 0; + if (WPAD_Probe(port, &type) == WPAD_ERR_NONE) { WPADData *wpaddata = WPAD_Data(port);