summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:55:08 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 14:02:43 +0100
commit72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (patch)
treed52d290cab7f7cbec7e67ebb0f7998962cdae534 /src/system
parent4f22f4d357c99ba4163a496882f813138db3c39b (diff)
*: use `auto`
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FileDescriptor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx
index 2e53c8086..8639d9dbf 100644
--- a/src/system/FileDescriptor.cxx
+++ b/src/system/FileDescriptor.cxx
@@ -290,7 +290,7 @@ FileDescriptor::GetSize() const noexcept
void
FileDescriptor::FullRead(void *_buffer, size_t length)
{
- uint8_t *buffer = (uint8_t *)_buffer;
+ auto *buffer = (uint8_t *)_buffer;
while (length > 0) {
ssize_t nbytes = Read(buffer, length);