Commit 060e865e authored by Jiří Klimeš's avatar Jiří Klimeš Committed by Dan Williams

core: trivial whitespace fixes

parent 096a1fcd
...@@ -980,21 +980,21 @@ check_writable (NMConnection *connection, GError **error) ...@@ -980,21 +980,21 @@ check_writable (NMConnection *connection, GError **error)
static void static void
get_settings_auth_cb (NMSettingsConnection *self, get_settings_auth_cb (NMSettingsConnection *self,
DBusGMethodInvocation *context, DBusGMethodInvocation *context,
gulong sender_uid, gulong sender_uid,
GError *error, GError *error,
gpointer data) gpointer data)
{ {
if (error) if (error)
dbus_g_method_return_error (context, error); dbus_g_method_return_error (context, error);
else { else {
GHashTable *settings; GHashTable *settings;
NMConnection *dupl_con; NMConnection *dupl_con;
NMSettingConnection *s_con; NMSettingConnection *s_con;
guint64 timestamp; guint64 timestamp;
dupl_con = nm_connection_duplicate (NM_CONNECTION (self)); dupl_con = nm_connection_duplicate (NM_CONNECTION (self));
g_assert (dupl_con); g_assert (dupl_con);
/* Timestamp is not updated in connection's 'timestamp' property, /* Timestamp is not updated in connection's 'timestamp' property,
* because it would force updating the connection and in turn * because it would force updating the connection and in turn
...@@ -1004,7 +1004,7 @@ get_settings_auth_cb (NMSettingsConnection *self, ...@@ -1004,7 +1004,7 @@ get_settings_auth_cb (NMSettingsConnection *self,
*/ */
timestamp = nm_settings_connection_get_timestamp (self); timestamp = nm_settings_connection_get_timestamp (self);
if (timestamp) { if (timestamp) {
s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (NM_CONNECTION (dupl_con), NM_TYPE_SETTING_CONNECTION)); s_con = nm_connection_get_setting_connection (NM_CONNECTION (dupl_con));
g_assert (s_con); g_assert (s_con);
g_object_set (s_con, NM_SETTING_CONNECTION_TIMESTAMP, timestamp, NULL); g_object_set (s_con, NM_SETTING_CONNECTION_TIMESTAMP, timestamp, NULL);
} }
...@@ -1017,7 +1017,7 @@ get_settings_auth_cb (NMSettingsConnection *self, ...@@ -1017,7 +1017,7 @@ get_settings_auth_cb (NMSettingsConnection *self,
g_assert (settings); g_assert (settings);
dbus_g_method_return (context, settings); dbus_g_method_return (context, settings);
g_hash_table_destroy (settings); g_hash_table_destroy (settings);
g_object_unref (dupl_con); g_object_unref (dupl_con);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment