summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorAlexander Wilson <rdtscp@fb.com>2022-07-20 11:02:56 -0700
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-07-21 09:50:47 +0200
commit64b634fbc685b0b570fc5e0cf1358515c5598b83 (patch)
tree79fda4e3c2b63c480ca54b3933335d4c59c58186 /src/coredump
parenta5d0919c9bbf28e5e9de8d109d298d1e0c604fc6 (diff)
downloadsystemd-64b634fbc685b0b570fc5e0cf1358515c5598b83.tar.gz
coredumpctl: Use BusLocator functions
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredumpctl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 01e922a962..43babb9803 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -12,6 +12,7 @@
#include "alloc-util.h"
#include "bus-error.h"
+#include "bus-locator.h"
#include "bus-util.h"
#include "compress.h"
#include "def.h"
@@ -1196,13 +1197,7 @@ static int check_units_active(void) {
if (r < 0)
return log_error_errno(r, "Failed to acquire bus: %m");
- 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 bus_log_create_error(r);