The .gl_pathc field is size_t, hence count in size_t too, to not
accidentally drop 32 of 64bits on the floor.
if (r < 0)
return r;
- for (unsigned n = 0; n < pglob.gl_pathc; n++) {
+ for (size_t n = 0; n < pglob.gl_pathc; n++) {
_cleanup_free_ char *fn = NULL;
_cleanup_(erase_and_freep) char *data = NULL;
size_t size;
/* When we don't match anything, -ENOENT should be returned */
assert(pglob.gl_pathc > 0);
- for (unsigned n = 0; n < pglob.gl_pathc; n++) {
+ for (size_t n = 0; n < pglob.gl_pathc; n++) {
_cleanup_strv_free_ char **p = NULL;
r = load_env_file(NULL, pglob.gl_pathv[n], &p);