From 5e325f7d9cacb726e9e2ef8eee98fb5360584bd6 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 31 Jul 2019 16:25:37 +0200 Subject: [PATCH] main: fix type for flistxattr return the return type is ssize_t, not size_t. Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 6926328..d018ac9 100644 --- a/main.c +++ b/main.c @@ -2154,7 +2154,7 @@ ovl_access (fuse_req_t req, fuse_ino_t ino, int mask) static int copy_xattr (int sfd, int dfd, char *buf, size_t buf_size) { - size_t xattr_len; + ssize_t xattr_len; xattr_len = flistxattr (sfd, buf, buf_size); if (xattr_len > 0)