about summary refs log tree commit diff
path: root/shared/nm-utils/nm-compat.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-10-05 22:28:16 +0200
committerMichael Biebl <biebl@debian.org>2020-10-05 22:28:16 +0200
commit47a2114d6f697a31d84c8874c49e94dd04119d75 (patch)
treee3022686ff1956d7f17f1f7cdf7022ce980b7a5c /shared/nm-utils/nm-compat.h
parent9d722f3d3492e31c0b3e4bcba603ffd65309c621 (diff)
parentaafc1dbe4712c86189bbc1d4d54ad8cb4c69be7e (diff)
Update upstream source from tag 'upstream/1.27.90'
Update to upstream version '1.27.90'
with Debian dir 72a0791efa5966be1724a82dfcac90f6cd22bd1b
Diffstat (limited to 'shared/nm-utils/nm-compat.h')
-rw-r--r--shared/nm-utils/nm-compat.h42
1 files changed, 20 insertions, 22 deletions
diff --git a/shared/nm-utils/nm-compat.h b/shared/nm-utils/nm-compat.h
index 55f764c7..fb136a5b 100644
--- a/shared/nm-utils/nm-compat.h
+++ b/shared/nm-utils/nm-compat.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: LGPL-2.1+
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /*
  * Copyright (C) 2017 Red Hat, Inc.
  */
@@ -8,30 +8,28 @@
 
 #include "nm-setting-vpn.h"
 
-const char **_nm_setting_vpn_get_data_keys (NMSettingVpn *setting,
-                                            guint *out_length);
+const char **_nm_setting_vpn_get_data_keys(NMSettingVpn *setting, guint *out_length);
 
-const char **_nm_setting_vpn_get_secret_keys (NMSettingVpn *setting,
-                                              guint *out_length);
+const char **_nm_setting_vpn_get_secret_keys(NMSettingVpn *setting, guint *out_length);
 
-#if NM_CHECK_VERSION (1, 11, 0)
-#define nm_setting_vpn_get_data_keys(setting, out_length) \
-	({ \
-		G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
-		nm_setting_vpn_get_data_keys (setting, out_length); \
-		G_GNUC_END_IGNORE_DEPRECATIONS \
-	})
-#define nm_setting_vpn_get_secret_keys(setting, out_length) \
-	({ \
-		G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
-		nm_setting_vpn_get_secret_keys (setting, out_length); \
-		G_GNUC_END_IGNORE_DEPRECATIONS \
-	})
+#if NM_CHECK_VERSION(1, 11, 0)
+    #define nm_setting_vpn_get_data_keys(setting, out_length)  \
+        ({                                                     \
+            G_GNUC_BEGIN_IGNORE_DEPRECATIONS                   \
+            nm_setting_vpn_get_data_keys(setting, out_length); \
+            G_GNUC_END_IGNORE_DEPRECATIONS                     \
+        })
+    #define nm_setting_vpn_get_secret_keys(setting, out_length)  \
+        ({                                                       \
+            G_GNUC_BEGIN_IGNORE_DEPRECATIONS                     \
+            nm_setting_vpn_get_secret_keys(setting, out_length); \
+            G_GNUC_END_IGNORE_DEPRECATIONS                       \
+        })
 #else
-#define nm_setting_vpn_get_data_keys(setting, out_length) \
-	_nm_setting_vpn_get_data_keys (setting, out_length)
-#define nm_setting_vpn_get_secret_keys(setting, out_length) \
-	_nm_setting_vpn_get_secret_keys (setting, out_length)
+    #define nm_setting_vpn_get_data_keys(setting, out_length) \
+        _nm_setting_vpn_get_data_keys(setting, out_length)
+    #define nm_setting_vpn_get_secret_keys(setting, out_length) \
+        _nm_setting_vpn_get_secret_keys(setting, out_length)
 #endif
 
 #endif /* __NM_COMPAT_H__ */