projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c84ed
)
networkctl: use sd_bus_get_property
author
Mike Yuan
<me@yhndnzj.com>
Sat, 1 Apr 2023 11:43:59 +0000
(19:43 +0800)
committer
Mike Yuan
<me@yhndnzj.com>
Sat, 1 Apr 2023 13:51:07 +0000
(21:51 +0800)
src/network/networkctl.c
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index 98471f5614a6a21ecbf5afe9dbafa1d652a29f4d..9b21afe405b70e7cfa87173e675618ca4fcc913f 100644
(file)
--- a/
src/network/networkctl.c
+++ b/
src/network/networkctl.c
@@
-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) {