summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-17 22:10:18 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-17 22:10:18 +0200
commit13052c02851b1dfb81c584eee141b83f80c98e0e (patch)
treec1ede41081a8261d33fa2f2de8968b7453862d45 /libudev
parent372b9bffa7197b345df35f75a577195a19b72eff (diff)
use 'else if' in epoll event array loop
Diffstat (limited to 'libudev')
-rw-r--r--libudev/test-libudev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libudev/test-libudev.c b/libudev/test-libudev.c
index 9dc86bd918..4192ba14b2 100644
--- a/libudev/test-libudev.c
+++ b/libudev/test-libudev.c
@@ -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;
}