mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
eitd/dmx.cpp: remove buffer casting to unsigned char
Origin commit data
------------------
Branch: ni/coolstream
Commit: 240ec1838f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-02-07 (Tue, 07 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -250,7 +250,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
|
||||
|
||||
lock();
|
||||
|
||||
int rc = dmx->Read((unsigned char *) buf, 4098, timeoutInMSeconds);
|
||||
int rc = dmx->Read(buf, 4098, timeoutInMSeconds);
|
||||
|
||||
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 */
|
||||
LongSection section((unsigned char *) buf);
|
||||
LongSection section(buf);
|
||||
uint16_t section_length = section.getSectionLength();
|
||||
|
||||
if (section_length <= 0)
|
||||
|
Reference in New Issue
Block a user