Clarify variable name
This commit is contained in:
@@ -402,7 +402,7 @@ free_get_secrets_info (gpointer data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
update_one_setting (const char* key,
|
update_one_setting (const char* setting_name,
|
||||||
GHashTable *setting_hash,
|
GHashTable *setting_hash,
|
||||||
NMConnection *connection,
|
NMConnection *connection,
|
||||||
GSList **updated)
|
GSList **updated)
|
||||||
@@ -415,7 +415,7 @@ update_one_setting (const char* key,
|
|||||||
* yes, replace the setting object in the connection. If not, just try
|
* yes, replace the setting object in the connection. If not, just try
|
||||||
* updating the secrets.
|
* updating the secrets.
|
||||||
*/
|
*/
|
||||||
type = nm_connection_lookup_setting_type (key);
|
type = nm_connection_lookup_setting_type (setting_name);
|
||||||
if (type == 0)
|
if (type == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -443,7 +443,7 @@ update_one_setting (const char* key,
|
|||||||
if (setting)
|
if (setting)
|
||||||
nm_connection_add_setting (connection, setting);
|
nm_connection_add_setting (connection, setting);
|
||||||
else {
|
else {
|
||||||
if (!nm_connection_update_secrets (connection, key, setting_hash, &error)) {
|
if (!nm_connection_update_secrets (connection, setting_name, setting_hash, &error)) {
|
||||||
nm_warning ("Failed to update connection secrets: %d %s",
|
nm_warning ("Failed to update connection secrets: %d %s",
|
||||||
error ? error->code : -1,
|
error ? error->code : -1,
|
||||||
error && error->message ? error->message : "(none)");
|
error && error->message ? error->message : "(none)");
|
||||||
@@ -451,7 +451,7 @@ update_one_setting (const char* key,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*updated = g_slist_append (*updated, (gpointer) key);
|
*updated = g_slist_append (*updated, (gpointer) setting_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user