]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
src/libadacl.c: cast two fgetxattr() and fsetxattr() params to size_t.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Mar 2018 01:41:31 +0000 (21:41 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Mar 2018 01:41:31 +0000 (21:41 -0400)
The two functions fgetxattr() and fsetxattr() take an unsigned "size"
parameter as arguments. We are passing them signed integers that we
happen to know are nonnegative, since we have ruled out the one
possible negative value -- but the compiler doesn't know that. To
avoid a warning from clang, we now cast the parameters to the
(unsigned) size_t type.


No differences found