tree-wide: use bus locator (#24252)

This modifies some sd_bus calls to equivalent bus calls.
This commit is contained in:
gtwang01
2022-08-09 16:19:09 +09:00
committed by GitHub
parent 5ed47c4d23
commit b607fd3f32
4 changed files with 18 additions and 24 deletions
+3 -4
View File
@@ -13,6 +13,7 @@
#include "alloc-util.h"
#include "bus-error.h"
#include "bus-locator.h"
#include "bus-log-control-api.h"
#include "bus-polkit.h"
#include "bus-util.h"
@@ -1041,12 +1042,10 @@ int manager_set_timezone(Manager *m, const char *tz) {
return 0;
}
r = sd_bus_call_method_async(
r = bus_call_method_async(
m->bus,
NULL,
"org.freedesktop.timedate1",
"/org/freedesktop/timedate1",
"org.freedesktop.timedate1",
bus_timedate,
"SetTimezone",
set_timezone_handler,
m,