diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-10 14:50:11 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-10 14:53:00 +0100 |
commit | deb2b7348e746df9a471b61d71b41b0e871cacde (patch) | |
tree | 815fecf2b58edae1cc1394911fa10981d34a25f9 /src/rfkill | |
parent | sd-device: add sd_device_monitor_get_event_source() (diff) | |
download | systemd-deb2b7348e746df9a471b61d71b41b0e871cacde.tar.xz systemd-deb2b7348e746df9a471b61d71b41b0e871cacde.zip |
sd-device: drop priority and description from sd_device_monitor_attach_event() and sd_device_monitor_start()
Now we have sd_device_monitor_get_event_soruce(). So, it is not
necessary to include these parameters in the functions for sd_device_monitor.
Diffstat (limited to 'src/rfkill')
-rw-r--r-- | src/rfkill/rfkill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c index 9e7d201add..47181bfc16 100644 --- a/src/rfkill/rfkill.c +++ b/src/rfkill/rfkill.c @@ -138,11 +138,11 @@ static int wait_for_initialized( if (r < 0) return log_error_errno(r, "Failed to add rfkill device match to monitor: %m"); - r = sd_device_monitor_attach_event(monitor, event, 0); + r = sd_device_monitor_attach_event(monitor, event); if (r < 0) return log_error_errno(r, "Failed to attach event to device monitor: %m"); - r = sd_device_monitor_start(monitor, device_monitor_handler, &data, "rfkill-device-monitor"); + r = sd_device_monitor_start(monitor, device_monitor_handler, &data); if (r < 0) return log_error_errno(r, "Failed to start device monitor: %m"); |