aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/FdOutStream.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-03-02 14:33:50 +0100
committerPierre Ossman <ossman@cendio.se>2023-03-18 13:30:34 +0100
commit19df176862ff0687cabc435056061a1b6cbe9ff2 (patch)
treea76c497fa8c7128ea2651f48fd170d8963b007db /common/rdr/FdOutStream.cxx
parent15a0da6157d5d34362e68591124324ba5a77ad66 (diff)
downloadtigervnc-19df176862ff0687cabc435056061a1b6cbe9ff2.tar.gz
tigervnc-19df176862ff0687cabc435056061a1b6cbe9ff2.zip
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.
Diffstat (limited to 'common/rdr/FdOutStream.cxx')
-rw-r--r--common/rdr/FdOutStream.cxx4
1 files changed, 2 insertions, 2 deletions
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;