diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-15 13:08:24 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-15 13:08:24 +0100 |
commit | c89acdc5a5e8e7b10508a7318d802c5309ee821b (patch) | |
tree | eae2f7716b28686d778123e316c7730fb18fdb41 | |
parent | Build modeCheck.o only once (diff) | |
download | netfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.tar.bz2 netfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.tar.xz netfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.zip |
Don't narrow return of pread
-rw-r--r-- | netfs/daemon/daemonFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/daemon/daemonFile.cpp b/netfs/daemon/daemonFile.cpp index ff4ad3e..610ee21 100644 --- a/netfs/daemon/daemonFile.cpp +++ b/netfs/daemon/daemonFile.cpp @@ -47,7 +47,7 @@ FileServer::read(Ice::Long offset, Ice::Long size, const Ice::Current &) NetFS::Buffer buf; buf.resize(size); errno = 0; - int r = pread(fd, &buf[0], size, offset); + auto r = pread(fd, &buf[0], size, offset); if (r == -1) { throw NetFS::SystemError(errno); } |