mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
eitd/dmx.cpp: remove buffer casting to unsigned char
This commit is contained in:
@@ -250,7 +250,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
|
|||||||
|
|
||||||
lock();
|
lock();
|
||||||
|
|
||||||
int rc = dmx->Read((unsigned char *) buf, 4098, timeoutInMSeconds);
|
int rc = dmx->Read(buf, 4098, timeoutInMSeconds);
|
||||||
|
|
||||||
if (rc < 3)
|
if (rc < 3)
|
||||||
{
|
{
|
||||||
@@ -271,7 +271,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* lets assume buffer size never less than 8, and parse LongSection */
|
/* lets assume buffer size never less than 8, and parse LongSection */
|
||||||
LongSection section((unsigned char *) buf);
|
LongSection section(buf);
|
||||||
uint16_t section_length = section.getSectionLength();
|
uint16_t section_length = section.getSectionLength();
|
||||||
|
|
||||||
if (section_length <= 0)
|
if (section_length <= 0)
|
||||||
|
Reference in New Issue
Block a user