diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-06-25 16:36:04 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-06-25 16:36:04 +0200 | 
| commit | 8bba5052cf7a3677e8be12315a03959fec33bf17 (patch) | |
| tree | 14664131c7f5acb1f995176b206aad3dd5ec15b6 /src/AVTInput.cpp | |
| parent | ca9892fc9667951986d25796354592d6f01222d9 (diff) | |
| download | ODR-SourceCompanion-8bba5052cf7a3677e8be12315a03959fec33bf17.tar.gz ODR-SourceCompanion-8bba5052cf7a3677e8be12315a03959fec33bf17.tar.bz2 ODR-SourceCompanion-8bba5052cf7a3677e8be12315a03959fec33bf17.zip | |
Cosmetic cleanup
Diffstat (limited to 'src/AVTInput.cpp')
| -rw-r--r-- | src/AVTInput.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/AVTInput.cpp b/src/AVTInput.cpp index f59cddb..48b2de1 100644 --- a/src/AVTInput.cpp +++ b/src/AVTInput.cpp @@ -238,7 +238,7 @@ int AVTInput::_openSocketCli()   */  ssize_t AVTInput::_read(uint8_t* buf, size_t size, bool onlyOnePacket)  { -    ssize_t nbBytes = 0; +    size_t nbBytes = 0;      uint8_t* data = buf;      UdpPacket _input_packet(2048); @@ -248,7 +248,7 @@ ssize_t AVTInput::_read(uint8_t* buf, size_t size, bool onlyOnePacket)      }      while (nbBytes < size) { -        unsigned freeSize = size - nbBytes; +        size_t freeSize = size - nbBytes;          if (_input_packet.getLength() > freeSize) {              // Not enought place in output              memcpy(&data[nbBytes], _input_packet.getData(), freeSize); @@ -256,7 +256,7 @@ ssize_t AVTInput::_read(uint8_t* buf, size_t size, bool onlyOnePacket)              _input_packet.setOffset(_input_packet.getOffset() + freeSize);          }          else { -            unsigned length = _input_packet.getLength(); +            size_t length = _input_packet.getLength();              memcpy(&data[nbBytes], _input_packet.getData(), length);              nbBytes += length;              _input_packet.setOffset(0); | 
