From: Richard Phibel Date: Thu, 4 Aug 2022 09:03:51 +0000 (+0200) Subject: analyze: Migrate to bus-locator.h X-Git-Tag: v252-rc1~516 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0d6ac67b5f84526ad2651bbe512034796bb529f;p=thirdparty%2Fsystemd.git analyze: Migrate to bus-locator.h Migrated analyze-security to use new API bus_call_method instead of sd_bus_call_method. --- diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 9255f4cb896..d4858f77c55 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -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,