]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not split strings into multiple lines
authorJouni Malinen <j@w1.fi>
Sat, 15 Feb 2020 15:12:45 +0000 (17:12 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 15 Feb 2020 15:12:45 +0000 (17:12 +0200)
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>
src/ap/ap_config.c

index cd83f4ba820421cb4b610fd33fa4b8709ab8e36a..12aae6c73fb05ce9408d10fc9743ca1985f481e5 100644 (file)
@@ -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;