From: Joel Rosdahl Date: Sun, 11 Sep 2022 09:12:03 +0000 (+0200) Subject: refactor: Let util::DataReceiver take uint8_t X-Git-Tag: v4.7~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d14f91280c5c3f3d6267bacb8ba873410646539;p=thirdparty%2Fccache.git refactor: Let util::DataReceiver take uint8_t --- diff --git a/src/util/file.cpp b/src/util/file.cpp index b4d0c286a..728f521e9 100644 --- a/src/util/file.cpp +++ b/src/util/file.cpp @@ -75,7 +75,7 @@ nonstd::expected read_fd(int fd, DataReceiver data_receiver) { int64_t n; - char buffer[CCACHE_READ_BUFFER_SIZE]; + uint8_t buffer[CCACHE_READ_BUFFER_SIZE]; while ((n = read(fd, buffer, sizeof(buffer))) != 0) { if (n == -1 && errno != EINTR) { break; diff --git a/src/util/types.hpp b/src/util/types.hpp index e09a10524..ba7683961 100644 --- a/src/util/types.hpp +++ b/src/util/types.hpp @@ -25,6 +25,6 @@ namespace util { -using DataReceiver = std::function; +using DataReceiver = std::function; } // namespace util