From 5b701964edde2673e91c15b35f9ae3afabf88b50 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sun, 10 Dec 2006 19:50:06 +0000 Subject: [PATCH] fix warning --- ChangeLog | 3 +++ lib/fuse_mt.c | 10 +--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04154eb..949d2fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ between fusermount and mount trying to modify /etc/mtab at the same time + * Fix "buffer size too small: 4" warning for users of the + fuse_loop_mt_proc() function. + 2006-12-04 Miklos Szeredi * Fix warnings with gcc-4.1 on 64bit archs. Report from diff --git a/lib/fuse_mt.c b/lib/fuse_mt.c index ee8ef40..c83095a 100644 --- a/lib/fuse_mt.c +++ b/lib/fuse_mt.c @@ -30,7 +30,7 @@ static void mt_session_proc(void *data, const char *buf, size_t len, struct fuse_cmd *cmd = *(struct fuse_cmd **) buf; (void) len; - cmd->ch = ch; + (void) ch; pd->proc(pd->f, cmd, pd->data); } @@ -65,13 +65,6 @@ static int mt_chan_receive(struct fuse_chan **chp, char *buf, size_t size) return sizeof(cmd); } -static int mt_chan_send(struct fuse_chan *ch, const struct iovec iov[], - size_t count) -{ - struct procdata *pd = (struct procdata *) fuse_chan_data(ch); - return fuse_chan_send(pd->prevch, iov, count); -} - int fuse_loop_mt_proc(struct fuse *f, fuse_processor_t proc, void *data) { int res; @@ -87,7 +80,6 @@ int fuse_loop_mt_proc(struct fuse *f, fuse_processor_t proc, void *data) }; struct fuse_chan_ops cop = { .receive = mt_chan_receive, - .send = mt_chan_send, }; pd.f = f; -- 2.30.2