summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-08-30 17:45:00 +0200
committerPaul Moore <paul@paul-moore.com>2022-08-30 17:03:33 -0400
commitc3fae2b2e690ab92ee1306cc22126240ab70e371 (patch)
tree1b7b1a24f7f57209dd7b42a9ca0715d5ed7ee087 /fs
parent5698f08169b905ed215fa7f45e89b42283ed0554 (diff)
selinux: use int arrays for boolean values
Do not cast pointers of signed integers to pointers of unsigned integers and vice versa. It should currently not be an issue since they hold SELinux boolean values which should only contain either 0's or 1's, which should have the same representation. Reported by sparse: .../selinuxfs.c:1485:30: warning: incorrect type in assignment (different signedness) .../selinuxfs.c:1485:30: expected unsigned int * .../selinuxfs.c:1485:30: got int *[addressable] values .../selinuxfs.c:1402:48: warning: incorrect type in argument 3 (different signedness) .../selinuxfs.c:1402:48: expected int *values .../selinuxfs.c:1402:48: got unsigned int *bool_pending_values Signed-off-by: Christian Göttsche <cgzones@googlemail.com> [PM: minor whitespace fixes, sparse output cleanup] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions