1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

analyze: Migrate to bus-locator.h

Migrated analyze-security to use new API bus_call_method instead of sd_bus_call_method.
This commit is contained in:
Richard Phibel 2022-08-04 11:03:51 +02:00 committed by Lennart Poettering
parent 03860190fe
commit d0d6ac67b5

View File

@ -7,6 +7,7 @@
#include "analyze-security.h"
#include "analyze-verify.h"
#include "bus-error.h"
#include "bus-locator.h"
#include "bus-map-properties.h"
#include "bus-unit-util.h"
#include "bus-util.h"
@ -2815,11 +2816,9 @@ static int analyze_security(sd_bus *bus,
_cleanup_strv_free_ char **list = NULL;
size_t n = 0;
r = sd_bus_call_method(
r = bus_call_method(
bus,
"org.freedesktop.systemd1",
"/org/freedesktop/systemd1",
"org.freedesktop.systemd1.Manager",
bus_systemd_mgr,
"ListUnits",
&error,
&reply,