diff options
Diffstat (limited to 'libudev/test-libudev.c')
-rw-r--r-- | libudev/test-libudev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libudev/test-libudev.c b/libudev/test-libudev.c index 34b3de86f1..3eb34494df 100644 --- a/libudev/test-libudev.c +++ b/libudev/test-libudev.c @@ -242,7 +242,7 @@ static int test_monitor(struct udev *udev) fd = udev_monitor_get_fd(udev_monitor); FD_ZERO(&readfds); - while (1) { + for (;;) { struct udev_device *device; int fdcount; @@ -422,7 +422,7 @@ int main(int argc, char *argv[]) udev_set_log_fn(udev, log_fn); printf("set log: %p\n", log_fn); - while (1) { + for (;;) { int option; option = getopt_long(argc, argv, "+dhV", options, NULL); |