aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-11-12 17:26:47 (GMT)
committerJouni Malinen <j@w1.fi>2016-11-12 17:26:47 (GMT)
commitfde3a531321e7fdd51a3b4893c38ed78a0c2f69f (patch)
tree0dd0298cb68346bd03612cfd123af9feeb634daa /hostapd
parent96a5b809582f608d4f6b38e87933156305da35d0 (diff)
downloadhostap-fde3a531321e7fdd51a3b4893c38ed78a0c2f69f.zip
hostap-fde3a531321e7fdd51a3b4893c38ed78a0c2f69f.tar.gz
hostap-fde3a531321e7fdd51a3b4893c38ed78a0c2f69f.tar.bz2
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 2c8dbd3..c0d65c4 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -549,14 +549,14 @@ static int hostapd_get_ctrl_iface_group(struct hapd_interfaces *interfaces,
static int hostapd_get_interface_names(char ***if_names,
size_t *if_names_size,
- char *optarg)
+ char *arg)
{
char *if_name, *tmp, **nnames;
size_t i;
- if (!optarg)
+ if (!arg)
return -1;
- if_name = strtok_r(optarg, ",", &tmp);
+ if_name = strtok_r(arg, ",", &tmp);
while (if_name) {
nnames = os_realloc_array(*if_names, 1 + *if_names_size,