mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-17 10:23:37 +02:00
zapit/channel: remove bogus (char *) cast
Origin commit data
------------------
Commit: 8004564022
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-10 (Tue, 10 Feb 2015)
This commit is contained in:
@@ -194,7 +194,7 @@ bool CZapitChannel::isHD()
|
|||||||
//printf("[zapit] HD channel: %s type 0x%X\n", name.c_str(), serviceType);
|
//printf("[zapit] HD channel: %s type 0x%X\n", name.c_str(), serviceType);
|
||||||
return true;
|
return true;
|
||||||
case ST_DIGITAL_TELEVISION_SERVICE: {
|
case ST_DIGITAL_TELEVISION_SERVICE: {
|
||||||
char * temp = (char *) name.c_str();
|
const char *temp = name.c_str();
|
||||||
int len = name.size();
|
int len = name.size();
|
||||||
if((len > 1) && temp[len-2] == 'H' && temp[len-1] == 'D') {
|
if((len > 1) && temp[len-2] == 'H' && temp[len-1] == 'D') {
|
||||||
//printf("[zapit] HD channel: %s type 0x%X\n", name.c_str(), serviceType);
|
//printf("[zapit] HD channel: %s type 0x%X\n", name.c_str(), serviceType);
|
||||||
|
Reference in New Issue
Block a user