From 19df176862ff0687cabc435056061a1b6cbe9ff2 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 2 Mar 2023 14:33:50 +0100 Subject: Consistently use uint8_t for data buffers These will always be byte streams at heart, so let's try to keep them with a proper type. Should make it clearer how they will be used. --- common/rdr/FdOutStream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/rdr/FdOutStream.cxx') diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx index e630a4d7..3a8cb076 100644 --- a/common/rdr/FdOutStream.cxx +++ b/common/rdr/FdOutStream.cxx @@ -78,7 +78,7 @@ void FdOutStream::cork(bool enable) bool FdOutStream::flushBuffer() { - size_t n = writeFd((const void*) sentUpTo, ptr - sentUpTo); + size_t n = writeFd(sentUpTo, ptr - sentUpTo); if (n == 0) return false; @@ -96,7 +96,7 @@ bool FdOutStream::flushBuffer() // returning EINTR. // -size_t FdOutStream::writeFd(const void* data, size_t length) +size_t FdOutStream::writeFd(const uint8_t* data, size_t length) { int n; -- cgit v1.2.3