aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2018-11-24 20:27:12 +0000
committerNikolaus Rath <Nikolaus@rath.org>2018-11-24 20:55:23 +0000
commitd1ab94c3551ebdeb4fbfbd12db930f4c20a3a889 (patch)
tree9c20e5d2a585d09eb5546e0fbe67c35cc3195a46
parentc3c3a500a5ef00456f9e555448071f8520aee8a4 (diff)
downloadlibfuse-d1ab94c3551ebdeb4fbfbd12db930f4c20a3a889.tar.gz
Avoid needless telldir() call.
-rw-r--r--example/passthrough_ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index a745220..eadad3a 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -698,7 +698,7 @@ static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
break;
}
}
- nextoff = telldir(d->dp);
+ nextoff = d->entry->d_off;
name = d->entry->d_name;
fuse_ino_t entry_ino = 0;
if (plus) {