Avoid compiler casting warnings by assigning to the same type where possible

This saves instructions that are related to casting as well as compiler warnings.
This commit is contained in:
Rose
2023-05-18 14:38:18 -04:00
parent a0b074cc9c
commit e54ba33ea0
50 changed files with 175 additions and 168 deletions

View File

@@ -672,7 +672,7 @@ set_policy_rlimits(void)
}
int
serialize_rlimits(char **info, size_t info_max)
serialize_rlimits(char **info, unsigned int info_max)
{
char *str;
unsigned int idx, nstored = 0;
@@ -708,7 +708,7 @@ serialize_rlimits(char **info, size_t info_max)
}
debug_return_int(nstored);
oom:
while (nstored--)
free(info[nstored]);
while (nstored)
free(info[--nstored]);
debug_return_int(-1);
}