Rename a function argument to avoid shadowing a variable in global scope
Do not use optarg as a function argument since a variable with that name is in the global scope. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
96a5b80958
commit
fde3a53132
1 changed files with 3 additions and 3 deletions
|
@ -549,14 +549,14 @@ static int hostapd_get_ctrl_iface_group(struct hapd_interfaces *interfaces,
|
||||||
|
|
||||||
static int hostapd_get_interface_names(char ***if_names,
|
static int hostapd_get_interface_names(char ***if_names,
|
||||||
size_t *if_names_size,
|
size_t *if_names_size,
|
||||||
char *optarg)
|
char *arg)
|
||||||
{
|
{
|
||||||
char *if_name, *tmp, **nnames;
|
char *if_name, *tmp, **nnames;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
if (!optarg)
|
if (!arg)
|
||||||
return -1;
|
return -1;
|
||||||
if_name = strtok_r(optarg, ",", &tmp);
|
if_name = strtok_r(arg, ",", &tmp);
|
||||||
|
|
||||||
while (if_name) {
|
while (if_name) {
|
||||||
nnames = os_realloc_array(*if_names, 1 + *if_names_size,
|
nnames = os_realloc_array(*if_names, 1 + *if_names_size,
|
||||||
|
|
Loading…
Reference in a new issue