From: Jouni Malinen Date: Sat, 15 Feb 2020 15:12:45 +0000 (+0200) Subject: Do not split strings into multiple lines X-Git-Tag: hostap_2_10~1835 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27ed050dbe5708cec05393336d62a60dcfb1a65;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index cd83f4ba8..12aae6c73 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -348,8 +348,9 @@ static int hostapd_config_read_wpa_psk(const char *fname, if (!token) token = ""; if (hwaddr_aton(token, addr)) { - wpa_printf(MSG_ERROR, "Invalid MAC address '%s' on " - "line %d in '%s'", token, line, fname); + wpa_printf(MSG_ERROR, + "Invalid MAC address '%s' on line %d in '%s'", + token, line, fname); ret = -1; break; } @@ -385,8 +386,9 @@ static int hostapd_config_read_wpa_psk(const char *fname, 4096, psk->psk, PMK_LEN) == 0) ok = 1; if (!ok) { - wpa_printf(MSG_ERROR, "Invalid PSK '%s' on line %d in " - "'%s'", pos, line, fname); + wpa_printf(MSG_ERROR, + "Invalid PSK '%s' on line %d in '%s'", + pos, line, fname); os_free(psk); ret = -1; break;