diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-09 16:08:00 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-09 16:08:00 +0100 |
commit | c1242b7cc805eb0ad73b9372544a3f689902ed6d (patch) | |
tree | 04728fb4f291ec18623ffe6d380102759d99f247 /netfs/fuse/fuseDirs.cpp | |
parent | Add more assertions around times (diff) | |
download | netfs-c1242b7cc805eb0ad73b9372544a3f689902ed6d.tar.bz2 netfs-c1242b7cc805eb0ad73b9372544a3f689902ed6d.tar.xz netfs-c1242b7cc805eb0ad73b9372544a3f689902ed6d.zip |
Tidy up the mess that was type conversion
Diffstat (limited to 'netfs/fuse/fuseDirs.cpp')
-rw-r--r-- | netfs/fuse/fuseDirs.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index ab09ca1..00c0ca4 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -1,6 +1,5 @@ #include "fuseApp.h" #include <lockHelpers.h> -#include <typeConvert.h> #include <entCache.h> NetFS::FuseApp::OpenDir::OpenDir(DirectoryPrx r, const std::string & p) : @@ -76,9 +75,7 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_ auto asga = volume->begin_getattr(reqEnv(), epath); statCache.addFactory(epath, [asga,this]() { - struct stat s; - s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup }; - return s; + return converter.convert(volume->end_getattr(asga)); }, time(NULL) + 2); } return 0; |