aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2023-11-20 17:12:15 +0100
committerSebastian Pipping <sebastian@pipping.org>2023-11-20 18:36:08 +0100
commit8408e5f5e64e01630b64304db8971e074ab0b25a (patch)
treeaa45fce5d44bd7cc061532959a854e9e2ce3f000 /src/bindfs.c
parent5e7ddd09888a7825aeb4ecf4da69bdf52af76bb2 (diff)
downloadbindfs-8408e5f5e64e01630b64304db8971e074ab0b25a.tar.gz
bindfs.c: Address warning -Wsign-compare
Symptom with Apple GCC: > bindfs.c:1677:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'ssize_t' (aka 'long') [-Werror,-Wsign-compare] > } while (len < res); > ~~~ ^ ~~~
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index 5f52395..033e3a4 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -1674,7 +1674,7 @@ static int bindfs_listxattr(const char *path, char* list, size_t size)
}
curr += thislen;
len += thislen;
- } while (len < res);
+ } while (len < (size_t)res);
} else {
// TODO: https://github.com/osxfuse/fuse/blob/master/example/fusexmp_fh.c
// had this commented out bit here o_O