summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-04-15 13:08:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-04-15 13:08:24 +0100
commitc89acdc5a5e8e7b10508a7318d802c5309ee821b (patch)
treeeae2f7716b28686d778123e316c7730fb18fdb41
parentBuild modeCheck.o only once (diff)
downloadnetfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.tar.bz2
netfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.tar.xz
netfs-c89acdc5a5e8e7b10508a7318d802c5309ee821b.zip
Don't narrow return of pread
-rw-r--r--netfs/daemon/daemonFile.cpp2
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);
}