From 7fd4d5013d4381fa1e81e2160d2506b803e22ec8 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 31 Dec 2017 23:46:11 +0100 Subject: [PATCH] C89 --- audio/drivers/tinyalsa.c | 4 ++-- input/connect/joypad_connection.c | 4 ++-- libretro-common/audio/resampler/drivers/sinc_resampler.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/audio/drivers/tinyalsa.c b/audio/drivers/tinyalsa.c index bb12d3a253..50d66693d9 100644 --- a/audio/drivers/tinyalsa.c +++ b/audio/drivers/tinyalsa.c @@ -753,9 +753,9 @@ struct pcm /** Flags that were passed to @ref pcm_open */ unsigned int flags; /** Whether the PCM is running or not */ - int running:1; + unsigned int running:1; /** Whether or not the PCM has been prepared */ - int prepared:1; + unsigned int prepared:1; /** The number of underruns that have occured */ int underruns; /** Size of the buffer */ diff --git a/input/connect/joypad_connection.c b/input/connect/joypad_connection.c index 2d3d95346b..486295f624 100644 --- a/input/connect/joypad_connection.c +++ b/input/connect/joypad_connection.c @@ -62,6 +62,7 @@ static bool joypad_is_end_of_list(joypad_connection_t *pad) { joypad_connection_t *pad_connection_init(unsigned pads) { unsigned i; + joypad_connection_t *joyconn; if(pads > MAX_USERS) { @@ -70,8 +71,7 @@ joypad_connection_t *pad_connection_init(unsigned pads) pads = MAX_USERS; } - joypad_connection_t *joyconn = (joypad_connection_t*) - calloc(pads+1, sizeof(joypad_connection_t)); + joyconn = (joypad_connection_t*)calloc(pads+1, sizeof(joypad_connection_t)); if (!joyconn) return NULL; diff --git a/libretro-common/audio/resampler/drivers/sinc_resampler.c b/libretro-common/audio/resampler/drivers/sinc_resampler.c index 6dd95afc2d..486f96a905 100644 --- a/libretro-common/audio/resampler/drivers/sinc_resampler.c +++ b/libretro-common/audio/resampler/drivers/sinc_resampler.c @@ -56,7 +56,7 @@ enum sinc_window { SINC_WINDOW_NONE = 0, SINC_WINDOW_KAISER, - SINC_WINDOW_LANCZOS, + SINC_WINDOW_LANCZOS }; /* For the little amount of taps we're using,