Declare read-only parameters const

Signal callers arguments are not going to be modified and allow passing
const pointers.
This commit is contained in:
Christian Göttsche
2022-08-05 17:40:26 +02:00
committed by Serge Hallyn
parent 0fe4128ee6
commit e32b4a9a81
6 changed files with 9 additions and 9 deletions

View File

@ -98,7 +98,7 @@ static int get_ranges (bool sys_user, uid_t *min_id, uid_t *max_id,
static int check_uid(const uid_t uid,
const uid_t uid_min,
const uid_t uid_max,
bool *used_uids)
const bool *used_uids)
{
/* First test that the preferred ID is in the range */
if (uid < uid_min || uid > uid_max) {