From: Michael Orlitzky Date: Thu, 29 Mar 2018 01:41:31 +0000 (-0400) Subject: src/libadacl.c: cast two fgetxattr() and fsetxattr() params to size_t. X-Git-Tag: v0.4.0~1 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=dcaa939a0e09bceb1392488fa126232629a63aa8;hp=dcaa939a0e09bceb1392488fa126232629a63aa8;p=apply-default-acl.git src/libadacl.c: cast two fgetxattr() and fsetxattr() params to size_t. 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. ---