xattr.c: avoid warning about comparison between signed and unsigned