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:
Jouni Malinen 2020-02-15 17:12:45 +02:00
parent 838180877f
commit b27ed050db

View file

@ -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;