mount-setup: use size_t when iterating through array indexes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user