summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-02 15:09:34 +0100
committerThomas Haller <thaller@redhat.com>2020-01-07 22:01:01 +0100
commit4ecad2dda792db1a7a41ce71fc407f6af1deb3b5 (patch)
treeb2e7bdfbc18f6d8cfd6c44b44ff39c2a7a8e06d2
parent1b92fa86ac99cfef21ff9d03dc11f9b33363d471 (diff)
downloadNetworkManager-4ecad2dda792db1a7a41ce71fc407f6af1deb3b5.tar.gz
libnm: break lines in conditions of nm_utils_security_valid()
-rw-r--r--libnm-core/nm-utils.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 1f30fd1591..7d6e159b84 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -1183,7 +1183,8 @@ nm_utils_security_valid (NMUtilsSecurityType type,
g_assert (have_ap);
if (ap_flags & NM_802_11_AP_FLAGS_PRIVACY)
return FALSE;
- if (ap_wpa || ap_rsn)
+ if ( ap_wpa
+ || ap_rsn)
return FALSE;
return TRUE;
case NMU_SEC_LEAP: /* require PRIVACY bit for LEAP? */
@@ -1194,7 +1195,8 @@ nm_utils_security_valid (NMUtilsSecurityType type,
g_assert (have_ap);
if (!(ap_flags & NM_802_11_AP_FLAGS_PRIVACY))
return FALSE;
- if (ap_wpa || ap_rsn) {
+ if ( ap_wpa
+ || ap_rsn) {
if (!device_supports_ap_ciphers (wifi_caps, ap_wpa, TRUE)) {
if (!device_supports_ap_ciphers (wifi_caps, ap_rsn, TRUE))
return FALSE;
@@ -1205,7 +1207,8 @@ nm_utils_security_valid (NMUtilsSecurityType type,
if (adhoc)
return FALSE;
g_assert (have_ap);
- if (ap_rsn || !(ap_flags & NM_802_11_AP_FLAGS_PRIVACY))
+ if ( ap_rsn
+ || !(ap_flags & NM_802_11_AP_FLAGS_PRIVACY))
return FALSE;
/* Some APs broadcast minimal WPA-enabled beacons that must be handled */
if (ap_wpa) {