1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

coredumpctl: Use BusLocator functions

This commit is contained in:
Alexander Wilson 2022-07-20 11:02:56 -07:00 committed by Daan De Meyer
parent a5d0919c9b
commit 64b634fbc6

View File

@ -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);