summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-05 11:52:15 +0200
committerThomas Haller <thaller@redhat.com>2019-05-12 09:56:36 +0200
commit458a5e6531224e2234bdeef3a988d6d0db9ee947 (patch)
tree713fe4df8b3e3cbde9aee81cd8591199e6a57090
parent654faa4d38f22444d4b72be9317f1f2eecb8bd4d (diff)
downloadNetworkManager-458a5e6531224e2234bdeef3a988d6d0db9ee947.tar.gz
src: use nm_dbus_connection_call_start_service_by_name()
-rw-r--r--src/dns/nm-dns-systemd-resolved.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/dns/nm-dns-systemd-resolved.c b/src/dns/nm-dns-systemd-resolved.c
index f4d742844b..9c011d4993 100644
--- a/src/dns/nm-dns-systemd-resolved.c
+++ b/src/dns/nm-dns-systemd-resolved.c
@@ -305,18 +305,12 @@ send_updates (NMDnsSystemdResolved *self)
_LOGT ("send-updates: no name owner. Try start service...");
priv->try_start_blocked = TRUE;
- g_dbus_connection_call (priv->dbus_connection,
- DBUS_SERVICE_DBUS,
- DBUS_PATH_DBUS,
- DBUS_INTERFACE_DBUS,
- "StartServiceByName",
- g_variant_new ("(su)", SYSTEMD_RESOLVED_DBUS_SERVICE, 0u),
- G_VARIANT_TYPE ("(u)"),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- NULL,
- NULL,
- NULL);
+ nm_dbus_connection_call_start_service_by_name (priv->dbus_connection,
+ SYSTEMD_RESOLVED_DBUS_SERVICE,
+ -1,
+ NULL,
+ NULL,
+ NULL);
return;
}