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
printf("fuseserver_setattr 0x%x\n", to_set);
if (FUSE_SET_ATTR_SIZE & to_set) {
printf(" fuseserver_setattr set size to %zu\n", attr->st_size);
struct stat st;
// You fill this in
#if 0
struct stat st;
fuse_reply_attr(req, &st, 0);
#else
fuse_reply_err(req, ENOSYS);
......@@ -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,
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));
else
return fuse_reply_buf(req, NULL, 0);
......@@ -241,10 +241,10 @@ void
fuseserver_mkdir(fuse_req_t req, fuse_ino_t parent, const char *name,
mode_t mode)
{
struct fuse_entry_param e;
// You fill this in
#if 0
struct fuse_entry_param e;
fuse_reply_entry(req, &e);
#else
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