summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}