Do not split strings into multiple lines
Convert hostapd_config_read_wpa_psk() to the newer style of not splitting strings into multiple lines. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
838180877f
commit
b27ed050db
1 changed files with 6 additions and 4 deletions
|
@ -348,8 +348,9 @@ static int hostapd_config_read_wpa_psk(const char *fname,
|
||||||
if (!token)
|
if (!token)
|
||||||
token = "";
|
token = "";
|
||||||
if (hwaddr_aton(token, addr)) {
|
if (hwaddr_aton(token, addr)) {
|
||||||
wpa_printf(MSG_ERROR, "Invalid MAC address '%s' on "
|
wpa_printf(MSG_ERROR,
|
||||||
"line %d in '%s'", token, line, fname);
|
"Invalid MAC address '%s' on line %d in '%s'",
|
||||||
|
token, line, fname);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -385,8 +386,9 @@ static int hostapd_config_read_wpa_psk(const char *fname,
|
||||||
4096, psk->psk, PMK_LEN) == 0)
|
4096, psk->psk, PMK_LEN) == 0)
|
||||||
ok = 1;
|
ok = 1;
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
wpa_printf(MSG_ERROR, "Invalid PSK '%s' on line %d in "
|
wpa_printf(MSG_ERROR,
|
||||||
"'%s'", pos, line, fname);
|
"Invalid PSK '%s' on line %d in '%s'",
|
||||||
|
pos, line, fname);
|
||||||
os_free(psk);
|
os_free(psk);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue