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.
This commit is contained in:
+2
-2
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user