Commit 05dbcf53 authored by Anjo Vahldiek's avatar Anjo Vahldiek
Browse files

remove warnings

parent bc4527cb
...@@ -84,9 +84,9 @@ fuseserver_setattr(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set ...@@ -84,9 +84,9 @@ fuseserver_setattr(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set
printf("fuseserver_setattr 0x%x\n", to_set); printf("fuseserver_setattr 0x%x\n", to_set);
if (FUSE_SET_ATTR_SIZE & to_set) { if (FUSE_SET_ATTR_SIZE & to_set) {
printf(" fuseserver_setattr set size to %zu\n", attr->st_size); printf(" fuseserver_setattr set size to %zu\n", attr->st_size);
struct stat st;
// You fill this in // You fill this in
#if 0 #if 0
struct stat st;
fuse_reply_attr(req, &st, 0); fuse_reply_attr(req, &st, 0);
#else #else
fuse_reply_err(req, ENOSYS); fuse_reply_err(req, ENOSYS);
...@@ -193,7 +193,7 @@ void dirbuf_add(struct dirbuf *b, const char *name, fuse_ino_t ino) ...@@ -193,7 +193,7 @@ void dirbuf_add(struct dirbuf *b, const char *name, fuse_ino_t ino)
int reply_buf_limited(fuse_req_t req, const char *buf, size_t bufsize, int reply_buf_limited(fuse_req_t req, const char *buf, size_t bufsize,
off_t off, size_t maxsize) off_t off, size_t maxsize)
{ {
if (off < bufsize) if ((size_t)off < bufsize)
return fuse_reply_buf(req, buf + off, min(bufsize - off, maxsize)); return fuse_reply_buf(req, buf + off, min(bufsize - off, maxsize));
else else
return fuse_reply_buf(req, NULL, 0); return fuse_reply_buf(req, NULL, 0);
...@@ -241,10 +241,10 @@ void ...@@ -241,10 +241,10 @@ void
fuseserver_mkdir(fuse_req_t req, fuse_ino_t parent, const char *name, fuseserver_mkdir(fuse_req_t req, fuse_ino_t parent, const char *name,
mode_t mode) mode_t mode)
{ {
struct fuse_entry_param e;
// You fill this in // You fill this in
#if 0 #if 0
struct fuse_entry_param e;
fuse_reply_entry(req, &e); fuse_reply_entry(req, &e);
#else #else
fuse_reply_err(req, ENOSYS); fuse_reply_err(req, ENOSYS);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment