aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_loop.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2013-06-21 18:17:27 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2013-06-21 18:17:27 +0200
commit5334a152e1272a072339fb4519de04ed4269d3ca (patch)
treece350efe74f0ecc17fd7cc4d43ddf51d06b5a993 /lib/fuse_loop.c
parent39065e40e0f00528980b35b52d8f5e13759e5a59 (diff)
downloadlibfuse-5334a152e1272a072339fb4519de04ed4269d3ca.tar.gz
libfuse: remove fuse_chan_(send|receive)
Move the fuse_chan_ops.send and .receive implementations to fuse_lowlevel.c. The abstraction wasn't actually useful and made the the splice implementation more difficult. Remove fuse_chan_ops.send and fuse_chan_ops.receive.
Diffstat (limited to 'lib/fuse_loop.c')
-rw-r--r--lib/fuse_loop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/fuse_loop.c b/lib/fuse_loop.c
index 987a8d7..91d2dd8 100644
--- a/lib/fuse_loop.c
+++ b/lib/fuse_loop.c
@@ -24,20 +24,19 @@ int fuse_session_loop(struct fuse_session *se)
}
while (!fuse_session_exited(se)) {
- struct fuse_chan *tmpch = ch;
struct fuse_buf fbuf = {
.mem = buf,
.size = bufsize,
};
- res = fuse_session_receive_buf(se, &fbuf, &tmpch);
+ res = fuse_session_receive_buf(se, &fbuf, ch);
if (res == -EINTR)
continue;
if (res <= 0)
break;
- fuse_session_process_buf(se, &fbuf, tmpch);
+ fuse_session_process_buf(se, &fbuf, ch);
}
free(buf);