udev-event: make udev_event_new() take sd_device instead of udev_device

This commit is contained in:
Yu Watanabe
2018-11-07 13:35:03 +09:00
parent cf697ec00e
commit cf28ad4689
6 changed files with 26 additions and 26 deletions
+2 -1
View File
@@ -12,6 +12,7 @@
#include <unistd.h>
#include "fs-util.h"
#include "libudev-device-internal.h"
#include "log.h"
#include "missing.h"
#include "selinux-util.h"
@@ -82,7 +83,7 @@ int main(int argc, char *argv[]) {
goto out;
}
assert_se(event = udev_event_new(dev, 0, NULL));
assert_se(event = udev_event_new(dev->device, 0, NULL));
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, SIGINT, SIGHUP, SIGCHLD, -1) >= 0);