From 88cbfb09ee5510277503ff1830ecc3aa6c380b00 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 27 May 2010 15:11:00 +0200 Subject: while (1) -> for (;;) --- libudev/libudev-util-private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libudev/libudev-util-private.c') 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, '/'); -- cgit v1.2.3-54-g00ecf