mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 03:30:09 +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,
|
nm_supplicant_config_add_blob_for_connection(NMSupplicantConfig *self,
|
||||||
GBytes *field,
|
GBytes *field,
|
||||||
const char *name,
|
const char *name,
|
||||||
const char *con_uid,
|
const char *con_uuid,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
if (field && g_bytes_get_size(field)) {
|
if (field && g_bytes_get_size(field)) {
|
||||||
gs_free char *uid = NULL;
|
gs_free char *blob_id = NULL;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
uid = g_strdup_printf("%s-%s", con_uid, name);
|
blob_id = g_strdup_printf("%s-%s", con_uuid, name);
|
||||||
for (p = uid; *p; p++) {
|
for (p = blob_id; *p; p++) {
|
||||||
if (*p == '/')
|
if (*p == '/')
|
||||||
*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 FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue