From c89acdc5a5e8e7b10508a7318d802c5309ee821b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 15 Apr 2022 13:08:24 +0100 Subject: Don't narrow return of pread --- netfs/daemon/daemonFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3