summary refs log tree commit diff
path: root/libnm-core/nm-setting-bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-setting-bridge.c')
-rw-r--r--libnm-core/nm-setting-bridge.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/libnm-core/nm-setting-bridge.c b/libnm-core/nm-setting-bridge.c
index c6aca021..23856e5c 100644
--- a/libnm-core/nm-setting-bridge.c
+++ b/libnm-core/nm-setting-bridge.c
@@ -1,5 +1,3 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
 /*
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -997,8 +995,10 @@ verify (NMSetting *setting, NMConnection *connection, GError **error)
 static NMTernary
 compare_property (const NMSettInfoSetting *sett_info,
                   guint property_idx,
-                  NMSetting *setting,
-                  NMSetting *other,
+                  NMConnection *con_a,
+                  NMSetting *set_a,
+                  NMConnection *con_b,
+                  NMSetting *set_b,
                   NMSettingCompareFlags flags)
 {
 	NMSettingBridgePrivate *priv_a;
@@ -1006,9 +1006,9 @@ compare_property (const NMSettInfoSetting *sett_info,
 	guint i;
 
 	if (nm_streq (sett_info->property_infos[property_idx].name, NM_SETTING_BRIDGE_VLANS)) {
-		if (other) {
-			priv_a = NM_SETTING_BRIDGE_GET_PRIVATE (setting);
-			priv_b = NM_SETTING_BRIDGE_GET_PRIVATE (other);
+		if (set_b) {
+			priv_a = NM_SETTING_BRIDGE_GET_PRIVATE (set_a);
+			priv_b = NM_SETTING_BRIDGE_GET_PRIVATE (set_b);
 
 			if (priv_a->vlans->len != priv_b->vlans->len)
 				return FALSE;
@@ -1022,8 +1022,10 @@ compare_property (const NMSettInfoSetting *sett_info,
 
 	return NM_SETTING_CLASS (nm_setting_bridge_parent_class)->compare_property (sett_info,
 	                                                                            property_idx,
-	                                                                            setting,
-	                                                                            other,
+	                                                                            con_a,
+	                                                                            set_a,
+	                                                                            con_b,
+	                                                                            set_b,
 	                                                                            flags);
 }