selinux: avoid implicit conversions in policydb code
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 7 Aug 2023 17:11:40 +0000 (19:11 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 9 Aug 2023 23:07:49 +0000 (19:07 -0400)
commitdee15375484326a684377d6e741fc222a80a15bb
treed5f0fa962056ad03f268ef0dc6b4989d0ad603f9
parent97842c56b8c80bb43f30ffbecbde0e512025e3ce
selinux: avoid implicit conversions in policydb code

Use the identical type for local variables, e.g. loop counters.

Declare members of struct policydb_compat_info unsigned to consistently
use unsigned iterators.  They hold read-only non-negative numbers in the
global variable policydb_compat.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c