diff --git a/input/input_joypad_driver.c b/input/input_joypad_driver.c index d7931249fd..ac149010a5 100644 --- a/input/input_joypad_driver.c +++ b/input/input_joypad_driver.c @@ -126,7 +126,8 @@ const char* config_get_joypad_driver_options(void) * * Returns: joypad driver if found, otherwise NULL. **/ -const input_device_driver_t *input_joypad_init_driver(const char *ident, void *data) +const input_device_driver_t *input_joypad_init_driver( + const char *ident, void *data) { unsigned i; if (!ident || !*ident) diff --git a/input/input_keyboard.c b/input/input_keyboard.c index 765dacd349..24904e1479 100644 --- a/input/input_keyboard.c +++ b/input/input_keyboard.c @@ -30,7 +30,8 @@ struct input_keyboard_line size_t size; /** Line complete callback. - * Calls back after return is pressed with the completed line. + * Calls back after return is + * pressed with the completed line. * Line can be NULL. **/ input_keyboard_line_complete_t cb; @@ -126,7 +127,8 @@ bool input_keyboard_line_event( { if (state->ptr) { - memmove(state->buffer + state->ptr - 1, state->buffer + state->ptr, + memmove(state->buffer + state->ptr - 1, + state->buffer + state->ptr, state->size - state->ptr + 1); state->ptr--; state->size--; @@ -141,7 +143,8 @@ bool input_keyboard_line_event( return false; memmove(newbuf + state->ptr + 1, - newbuf + state->ptr, state->size - state->ptr + 1); + newbuf + state->ptr, + state->size - state->ptr + 1); newbuf[state->ptr] = c; state->ptr++; state->size++; @@ -165,7 +168,8 @@ bool input_keyboard_line_event( * * Returns: pointer to string. **/ -const char **input_keyboard_line_get_buffer(const input_keyboard_line_t *state) +const char **input_keyboard_line_get_buffer( + const input_keyboard_line_t *state) { return (const char**)&state->buffer; } @@ -264,7 +268,8 @@ void input_keyboard_event(bool down, unsigned code, switch (device) { case RETRO_DEVICE_POINTER: - if (!input_keyboard_line_event(g_keyboard_line, (code != 0x12d) ? (char)code : character)) + if (!input_keyboard_line_event(g_keyboard_line, + (code != 0x12d) ? (char)code : character)) return; break; default: diff --git a/input/input_remapping.c b/input/input_remapping.c index fedc7b332e..40906dfdec 100644 --- a/input/input_remapping.c +++ b/input/input_remapping.c @@ -43,7 +43,7 @@ bool input_remapping_load_file(void *data, const char *path) for (i = 0; i < MAX_USERS; i++) { - char buf[64] = {0}; + char buf[64]; char key_ident[RARCH_FIRST_CUSTOM_BIND + 4][128] = {{0}}; char key_strings[RARCH_FIRST_CUSTOM_BIND + 4][128] = { "b", "y", "select", "start",