From: Lennart Poettering Date: Tue, 2 May 2023 10:03:32 +0000 (+0200) Subject: mount-setup: use size_t when iterating through array indexes X-Git-Tag: v254-rc1~576^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F27492%2Fhead;p=thirdparty%2Fsystemd.git mount-setup: use size_t when iterating through array indexes --- diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c index 1303b6c71b3..a920e8a92a8 100644 --- a/src/shared/mount-setup.c +++ b/src/shared/mount-setup.c @@ -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;