bus: Use OrderedSet for introspection

Otherwise, the generated xml files are not reproducible.
This commit is contained in:
Jan Janssen
2022-01-19 23:07:59 +00:00
committed by Luca Boccassi
parent de843f8582
commit acac88340a
4 changed files with 28 additions and 29 deletions
+2 -2
View File
@@ -156,10 +156,10 @@ int bus_introspect_implementations(
if (impl != main_impl)
bus_introspect_implementation(&intro, impl);
_cleanup_set_free_ Set *nodes = NULL;
_cleanup_ordered_set_free_ OrderedSet *nodes = NULL;
for (size_t i = 0; impl->children && impl->children[i]; i++) {
r = set_put_strdup(&nodes, impl->children[i]->path);
r = ordered_set_put_strdup(&nodes, impl->children[i]->path);
if (r < 0)
return log_oom();
}