summaryrefslogtreecommitdiff
path: root/src/KM_fileio.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-22 18:04:11 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-22 18:04:11 +0100
commit18610e37a74bdd8fcb4734b20b4dc2aca791fddb (patch)
tree37b9d251401fde302030432dbb3d33d4d8081f75 /src/KM_fileio.cpp
parent4b5d6e8d27dfd5fb282590538068662f4dbbf1c9 (diff)
Remove use of register keyword (reserved in C++17).
Diffstat (limited to 'src/KM_fileio.cpp')
-rw-r--r--src/KM_fileio.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp
index 4f67fdf..5a8597b 100644
--- a/src/KM_fileio.cpp
+++ b/src/KM_fileio.cpp
@@ -753,7 +753,7 @@ Kumu::Result_t
Kumu::FileWriter::Writev(const byte_t* buf, ui32_t buf_len)
{
assert( ! m_IOVec.empty() );
- register h__iovec* iov = m_IOVec;
+ h__iovec* iov = m_IOVec;
KM_TEST_NULL_L(buf);
if ( iov->m_Count >= IOVecMaxEntries )
@@ -1122,7 +1122,7 @@ Kumu::Result_t
Kumu::FileWriter::Writev(ui32_t* bytes_written)
{
assert( ! m_IOVec.empty() );
- register h__iovec* iov = m_IOVec;
+ h__iovec* iov = m_IOVec;
ui32_t tmp_int;
if ( bytes_written == 0 )
@@ -1136,7 +1136,7 @@ Kumu::FileWriter::Writev(ui32_t* bytes_written)
Result_t result = Kumu::RESULT_OK;
// AFAIK, there is no writev() equivalent in the win32 API
- for ( register int i = 0; i < iov->m_Count; i++ )
+ for ( int i = 0; i < iov->m_Count; i++ )
{
ui32_t tmp_count = 0;
BOOL wr_result = ::WriteFile(m_Handle,
@@ -1313,7 +1313,7 @@ Kumu::Result_t
Kumu::FileWriter::Writev(ui32_t* bytes_written)
{
assert( ! m_IOVec.empty() );
- register h__iovec* iov = m_IOVec;
+ h__iovec* iov = m_IOVec;
ui32_t tmp_int;
if ( bytes_written == 0 )