]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-setup: use size_t when iterating through array indexes 27492/head
authorLennart Poettering <lennart@poettering.net>
Tue, 2 May 2023 10:03:32 +0000 (12:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 May 2023 10:06:03 +0000 (12:06 +0200)
src/shared/mount-setup.c

index 1303b6c71b3e0c11f8c9f41029c82280cafd9da9..a920e8a92a8000a81299f53af01d955b5ad9ad40 100644 (file)
@@ -115,12 +115,10 @@ static const MountPoint mount_table[] = {
 };
 
 bool mount_point_is_api(const char *path) {
-        unsigned i;
-
         /* Checks if this mount point is considered "API", and hence
          * should be ignored */
 
-        for (i = 0; i < ELEMENTSOF(mount_table); i ++)
+        for (size_t i = 0; i < ELEMENTSOF(mount_table); i ++)
                 if (path_equal(path, mount_table[i].where))
                         return true;