bus: Use OrderedSet for introspection
Otherwise, the generated xml files are not reproducible.
This commit is contained in:
committed by
Luca Boccassi
parent
de843f8582
commit
acac88340a
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user