mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 08:10:06 +01:00
supplicant: rename variables
Rename uid to to blob_id, and con_uid to con_uuid.
This commit is contained in:
parent
4e26403c4a
commit
932b85f7e7
1 changed files with 5 additions and 5 deletions
|
|
@ -258,19 +258,19 @@ static gboolean
|
|||
nm_supplicant_config_add_blob_for_connection(NMSupplicantConfig *self,
|
||||
GBytes *field,
|
||||
const char *name,
|
||||
const char *con_uid,
|
||||
const char *con_uuid,
|
||||
GError **error)
|
||||
{
|
||||
if (field && g_bytes_get_size(field)) {
|
||||
gs_free char *uid = NULL;
|
||||
gs_free char *blob_id = NULL;
|
||||
char *p;
|
||||
|
||||
uid = g_strdup_printf("%s-%s", con_uid, name);
|
||||
for (p = uid; *p; p++) {
|
||||
blob_id = g_strdup_printf("%s-%s", con_uuid, name);
|
||||
for (p = blob_id; *p; p++) {
|
||||
if (*p == '/')
|
||||
*p = '-';
|
||||
}
|
||||
if (!nm_supplicant_config_add_blob(self, name, field, uid, error))
|
||||
if (!nm_supplicant_config_add_blob(self, name, field, blob_id, error))
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue