From b27ed050dbe5708cec05393336d62a60dcfb1a65 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 15 Feb 2020 17:12:45 +0200 Subject: [PATCH] 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 --- src/ap/ap_config.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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;