chiark / gitweb /
while (1) -> for (;;)
[elogind.git] / libudev / libudev-util-private.c
index 8c535125a83c0fee9e818357912d8b1215ac1ecb..7d28b23b389e6d3c6fc11dba6d75678a5760ba79 100644 (file)
@@ -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, '/');