1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-27 21:49:55 +03:00

networkctl: use sd_bus_get_property

This commit is contained in:
Mike Yuan
2023-04-01 19:43:59 +08:00
parent 61c84edff8
commit 5a0c810462

View File

@ -675,17 +675,7 @@ static int link_get_property(
if (r < 0)
return r;
return sd_bus_call_method(
bus,
"org.freedesktop.network1",
path,
"org.freedesktop.DBus.Properties",
"Get",
error,
reply,
"ss",
iface,
propname);
return sd_bus_get_property(bus, "org.freedesktop.network1", path, iface, propname, error, reply, "ss");
}
static int acquire_link_bitrates(sd_bus *bus, LinkInfo *link) {