summaryrefslogtreecommitdiff
path: root/src/core/supplicant/nm-supplicant-config.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-10-06 16:29:05 +0200
committerThomas Haller <thaller@redhat.com>2022-10-06 17:38:19 +0200
commitbf9611ac5ebeda56b7b0fa8a0deb23feeeedd754 (patch)
treec25cfc3f965a8075513d5d655e1a31359294c2dd /src/core/supplicant/nm-supplicant-config.c
parent06c7bc6a6bbded64b86ddf8775ba10cae96bea12 (diff)
downloadNetworkManager-bf9611ac5ebeda56b7b0fa8a0deb23feeeedd754.tar.gz
all: switch GSlice uses over to nm_slice*() macros
for p in \ g_slice_alloc:nm_slice_alloc \ g_slice_alloc0:nm_slice_alloc0 \ g_slice_free:nm_slice_free_typed \ g_slice_free1:nm_slice_free_sized \ g_slice_new:nm_slice_new \ g_slice_new0:nm_slice_new0 \ ; do git grep -l ${p%:*} | xargs sed "s/\<${p%:*}\>/${p#*:}/g" -i done ./contrib/scripts/nm-code-format.sh -u
Diffstat (limited to 'src/core/supplicant/nm-supplicant-config.c')
-rw-r--r--src/core/supplicant/nm-supplicant-config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/supplicant/nm-supplicant-config.c b/src/core/supplicant/nm-supplicant-config.c
index 707ad98100..baa30f5519 100644
--- a/src/core/supplicant/nm-supplicant-config.c
+++ b/src/core/supplicant/nm-supplicant-config.c
@@ -77,7 +77,7 @@ static void
config_option_free(ConfigOption *opt)
{
g_free(opt->value);
- g_slice_free(ConfigOption, opt);
+ nm_slice_free_typed(ConfigOption, opt);
}
static void
@@ -153,7 +153,7 @@ nm_supplicant_config_add_option_with_type(NMSupplicantConfig *self,
return FALSE;
}
- opt = g_slice_new0(ConfigOption);
+ opt = nm_slice_new0(ConfigOption);
opt->value = g_malloc(len + 1);
memcpy(opt->value, value, len);
opt->value[len] = '\0';
@@ -237,7 +237,7 @@ nm_supplicant_config_add_blob(NMSupplicantConfig *self,
return FALSE;
}
- opt = g_slice_new0(ConfigOption);
+ opt = nm_slice_new0(ConfigOption);
opt->value = g_strdup_printf("blob://%s", blobid);
opt->len = strlen(opt->value);
opt->type = type;