summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-07-17 05:36:02 +0200
committerLennart Poettering <lennart@poettering.net>2018-07-17 12:40:04 +0200
commitcad435956862b682fd15f3842224bf67ea2c35f0 (patch)
tree3739454e6e0004543a5c540ccaabf3a3970e59bf /src/network
parentMerge pull request #9597 from mbiebl/tests-initrd (diff)
downloadsystemd-cad435956862b682fd15f3842224bf67ea2c35f0.tar.xz
systemd-cad435956862b682fd15f3842224bf67ea2c35f0.zip
network: drop unused slots
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-manager.c6
-rw-r--r--src/network/networkd-manager.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 1c4866077b..8019d4488c 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -160,7 +160,7 @@ int manager_connect_bus(Manager *m) {
r = sd_bus_match_signal_async(
m->bus,
- &m->connected_slot,
+ NULL,
"org.freedesktop.DBus.Local",
NULL,
"org.freedesktop.DBus.Local",
@@ -171,7 +171,7 @@ int manager_connect_bus(Manager *m) {
r = sd_bus_match_signal_async(
m->bus,
- &m->prepare_for_sleep_slot,
+ NULL,
"org.freedesktop.login1",
"/org/freedesktop/login1",
"org.freedesktop.login1.Manager",
@@ -1477,8 +1477,6 @@ void manager_free(Manager *m) {
udev_unref(m->udev);
sd_bus_unref(m->bus);
- sd_bus_slot_unref(m->prepare_for_sleep_slot);
- sd_bus_slot_unref(m->connected_slot);
free(m->dynamic_timezone);
free(m->dynamic_hostname);
diff --git a/src/network/networkd-manager.h b/src/network/networkd-manager.h
index 9c16359d51..3543e5861d 100644
--- a/src/network/networkd-manager.h
+++ b/src/network/networkd-manager.h
@@ -26,8 +26,6 @@ struct Manager {
sd_event *event;
sd_resolve *resolve;
sd_bus *bus;
- sd_bus_slot *prepare_for_sleep_slot;
- sd_bus_slot *connected_slot;
struct udev *udev;
struct udev_monitor *udev_monitor;
sd_event_source *udev_event_source;