summaryrefslogtreecommitdiff
path: root/libudev
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
parentabbc1c17a0cd0c6f5d00f9d2cd3bf19901ccb6f8 (diff)
while (1) -> for (;;)
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-queue.c4
-rw-r--r--libudev/libudev-util-private.c2
-rw-r--r--libudev/test-libudev.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/libudev/libudev-queue.c b/libudev/libudev-queue.c
index d305db6578..be8804bdd0 100644
--- a/libudev/libudev-queue.c
+++ b/libudev/libudev-queue.c
@@ -243,7 +243,7 @@ unsigned long long int udev_queue_get_udev_seqnum(struct udev_queue *udev_queue)
if (queue_file == NULL)
return 0;
- while (1) {
+ for (;;) {
unsigned long long int seqnum;
ssize_t devpath_len;
@@ -435,7 +435,7 @@ struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev_queue *udev
if (queue_file == NULL)
return NULL;
- while (1) {
+ for (;;) {
char syspath[UTIL_PATH_SIZE];
char *s;
size_t l;
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index 8c535125a8..7d28b23b38 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -84,7 +84,7 @@ int util_delete_path(struct udev *udev, const char *path)
if (pos == p || pos == NULL)
return 0;
- while (1) {
+ for (;;) {
*pos = '\0';
pos = strrchr(p, '/');
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);