mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
use 'else if' in epoll event array loop
This commit is contained in:
parent
372b9bffa7
commit
13052c0285
@ -286,9 +286,7 @@ static int test_monitor(struct udev *udev)
|
||||
}
|
||||
print_device(device);
|
||||
udev_device_unref(device);
|
||||
}
|
||||
|
||||
if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) {
|
||||
} else if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) {
|
||||
printf("exiting loop\n");
|
||||
goto out;
|
||||
}
|
||||
|
@ -266,9 +266,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[])
|
||||
continue;
|
||||
print_device(device, "KERNEL", prop);
|
||||
udev_device_unref(device);
|
||||
}
|
||||
|
||||
if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) {
|
||||
} else if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) {
|
||||
struct udev_device *device;
|
||||
|
||||
device = udev_monitor_receive_device(udev_monitor);
|
||||
|
Loading…
Reference in New Issue
Block a user