summaryrefslogtreecommitdiffstats
path: root/src/portable/portable.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-05-23 20:09:37 +0200
committerDavid Tardon <dtardon@redhat.com>2023-05-24 08:23:59 +0200
commitb71471684afa7972b6328e99a554098c032c0caf (patch)
tree98b8a7549162ca63bc73af384edad675cd94dc59 /src/portable/portable.c
parentcore/slice: shorten code a bit (diff)
downloadsystemd-b71471684afa7972b6328e99a554098c032c0caf.tar.xz
systemd-b71471684afa7972b6328e99a554098c032c0caf.zip
tree-wide: convert more system1.Manager calls to BusLocator
Diffstat (limited to 'src/portable/portable.c')
-rw-r--r--src/portable/portable.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index e5f2f38a21..7ab3ac6e97 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -4,6 +4,7 @@
#include "bus-common-errors.h"
#include "bus-error.h"
+#include "bus-locator.h"
#include "chase.h"
#include "conf-files.h"
#include "copy.h"
@@ -780,13 +781,7 @@ static int unit_file_is_active(
_cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL, *reply = NULL;
const char *at, *prefix, *joined;
- r = sd_bus_message_new_method_call(
- bus,
- &m,
- "org.freedesktop.systemd1",
- "/org/freedesktop/systemd1",
- "org.freedesktop.systemd1.Manager",
- "ListUnitsByPatterns");
+ r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "ListUnitsByPatterns");
if (r < 0)
return r;