return ACL_ERROR;
}
- size_t src_size_guess = fgetxattr(src_fd, src_name, NULL, 0);
+ ssize_t src_size_guess = fgetxattr(src_fd, src_name, NULL, 0);
if (src_size_guess == XATTR_ERROR) {
if (errno == ENODATA) {
/* A missing ACL isn't really an error. ENOATTR and ENODATA are
}
char* src_acl_p = alloca(src_size_guess);
/* The actual size may be smaller than our guess? I don't know. */
- size_t src_size = fgetxattr(src_fd, src_name, src_acl_p, (int)src_size_guess);
+ ssize_t src_size = fgetxattr(src_fd, src_name, src_acl_p, src_size_guess);
if (src_size == XATTR_ERROR) {
if (errno == ENODATA) {
/* A missing ACL isn't an error. */