summaryrefslogtreecommitdiffstats
path: root/src/input/Prbs.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-04 14:49:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-04 14:49:11 +0100
commit8db328c61832a92bf3f7641061b68767141104f3 (patch)
tree831510d5b03363ed8a5d0bcb75360ed48f599b33 /src/input/Prbs.cpp
parentfde78e58eb3c48135b6d96680fca7eb3d617f940 (diff)
downloaddabmux-8db328c61832a92bf3f7641061b68767141104f3.tar.gz
dabmux-8db328c61832a92bf3f7641061b68767141104f3.tar.bz2
dabmux-8db328c61832a92bf3f7641061b68767141104f3.zip
Change readFrame argument types
Diffstat (limited to 'src/input/Prbs.cpp')
-rw-r--r--src/input/Prbs.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/input/Prbs.cpp b/src/input/Prbs.cpp
index 8e5a9ae..607ce9f 100644
--- a/src/input/Prbs.cpp
+++ b/src/input/Prbs.cpp
@@ -77,12 +77,10 @@ int Prbs::open(const string& name)
return 0;
}
-int Prbs::readFrame(void* buffer, int size)
+int Prbs::readFrame(uint8_t* buffer, size_t size)
{
- unsigned char* cbuffer = reinterpret_cast<unsigned char*>(buffer);
-
- for (int i = 0; i < size; ++i) {
- cbuffer[i] = m_prbs.step();
+ for (size_t i = 0; i < size; ++i) {
+ buffer[i] = m_prbs.step();
}
return size;