summaryrefslogtreecommitdiff
path: root/libudev/test-libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-05-27 15:11:00 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-27 15:11:00 +0200
commit88cbfb09ee5510277503ff1830ecc3aa6c380b00 (patch)
tree5e836252fc5c2061066d2afe386db29b254d514d /libudev/test-libudev.c
parentabbc1c17a0cd0c6f5d00f9d2cd3bf19901ccb6f8 (diff)
while (1) -> for (;;)
Diffstat (limited to 'libudev/test-libudev.c')
-rw-r--r--libudev/test-libudev.c4
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);