diff options
Diffstat (limited to 'libnm-core/nm-keyfile-writer.c')
-rw-r--r-- | libnm-core/nm-keyfile-writer.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libnm-core/nm-keyfile-writer.c b/libnm-core/nm-keyfile-writer.c index f62e97c3e6..e0e6ba4bf8 100644 --- a/libnm-core/nm-keyfile-writer.c +++ b/libnm-core/nm-keyfile-writer.c @@ -233,12 +233,6 @@ route_writer (KeyfileWriterInfo *info, write_ip_values (info->keyfile, setting_name, array, NULL, TRUE); } -static int -sort_hash_keys (gconstpointer a, gconstpointer b, gpointer user_data) -{ - return g_strcmp0 (*((const char **) a), *((const char **) b)); -} - static void write_hash_of_string (GKeyFile *file, NMSetting *setting, @@ -262,7 +256,7 @@ write_hash_of_string (GKeyFile *file, if (!keys) return; - g_qsort_with_data (keys, l, sizeof (const char *), sort_hash_keys, NULL); + g_qsort_with_data (keys, l, sizeof (const char *), nm_strcmp_p_with_data, NULL); for (i = 0; keys[i]; i++) { const char *property, *data; |