(input_autodetect.c) Turn static variable into local static variable - remote_bound

This commit is contained in:
twinaphex 2015-12-04 02:57:47 +01:00
parent 2582898a28
commit 957d53499b

View File

@ -27,9 +27,8 @@
#include "../general.h"
#include "../verbosity.h"
static bool remote_is_bound = false;
/* adds an index for devices with the same name so they can be identified in the GUI*/
/* Adds an index for devices with the same name,
* so they can be identified in the GUI. */
static void input_reindex_devices()
{
unsigned i;
@ -46,7 +45,8 @@ static void input_reindex_devices()
for(j = 0; j < settings->input.max_users; j++)
{
if(!strcmp(tmp,settings->input.device_names[j]) && settings->input.device_name_index[i]==0)
if(!strcmp(tmp,settings->input.device_names[j])
&& settings->input.device_name_index[i]==0)
settings->input.device_name_index[j]=k++;
}
}
@ -78,8 +78,6 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
if (!conf)
return false;
*ident = *input_driver = '\0';
config_get_array(conf, "input_device", ident, sizeof(ident));
config_get_array(conf, "input_driver", input_driver, sizeof(input_driver));
config_get_int (conf, "input_vendor_id", &input_vid);
@ -123,11 +121,10 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
return score;
}
static void input_autoconfigure_joypad_add(
config_file_t *conf,
autoconfig_params_t *params)
static void input_autoconfigure_joypad_add(config_file_t *conf, autoconfig_params_t *params)
{
bool block_osd_spam;
static bool remote_is_bound = false;
char msg[PATH_MAX_LENGTH] = {0};
char display_name[PATH_MAX_LENGTH] = {0};
char device_type[PATH_MAX_LENGTH] = {0};