diff options
Diffstat (limited to 'src/basic/rlimit-util.c')
-rw-r--r-- | src/basic/rlimit-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c index 880976312c..e01ffdb074 100644 --- a/src/basic/rlimit-util.c +++ b/src/basic/rlimit-util.c @@ -50,13 +50,13 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { } int setrlimit_closest_all(const struct rlimit *const *rlim, int *which_failed) { - int i, r; + int r; assert(rlim); /* On failure returns the limit's index that failed in *which_failed, but only if non-NULL */ - for (i = 0; i < _RLIMIT_MAX; i++) { + for (int i = 0; i < _RLIMIT_MAX; i++) { if (!rlim[i]) continue; |