]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: Migrate to bus-locator.h
authorRichard Phibel <rphibel@googlemail.com>
Thu, 4 Aug 2022 09:03:51 +0000 (11:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Aug 2022 15:26:49 +0000 (17:26 +0200)
Migrated analyze-security to use new API bus_call_method instead of sd_bus_call_method.

src/analyze/analyze-security.c

index 9255f4cb896f8a8178229179553f8c8663c76987..d4858f77c553e12658ec8b4673a34bd644e51417 100644 (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,