From d0d6ac67b5f84526ad2651bbe512034796bb529f Mon Sep 17 00:00:00 2001 From: Richard Phibel Date: Thu, 4 Aug 2022 11:03:51 +0200 Subject: [PATCH] analyze: Migrate to bus-locator.h Migrated analyze-security to use new API bus_call_method instead of sd_bus_call_method. --- src/analyze/analyze-security.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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, -- 2.47.3