mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
comment some found not used variables
This commit is contained in:
@@ -757,6 +757,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) {
|
||||
hh->SendError();
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
unsigned int repeat = 1;
|
||||
unsigned int delay = 250;
|
||||
if (hh->ParamList["delay"] != "")
|
||||
@@ -765,7 +766,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) {
|
||||
repeat = atoi(hh->ParamList["duration"].c_str()) * 1000 / delay;
|
||||
if (hh->ParamList["repeat"] != "")
|
||||
repeat = atoi(hh->ParamList["repeat"].c_str());
|
||||
|
||||
#endif
|
||||
int evd = open(EVENTDEV, O_RDWR);
|
||||
if (evd < 0) {
|
||||
hh->SendError();
|
||||
|
@@ -222,7 +222,7 @@ t_channel_id CNeutrinoAPI::ChannelNameToChannelId(std::string search_channel_nam
|
||||
|
||||
bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10])
|
||||
{
|
||||
char *key, *tmpptr, buf[100];
|
||||
char /* *key,*/ *tmpptr, buf[100];
|
||||
long value;
|
||||
int pos = 0;
|
||||
|
||||
@@ -243,7 +243,7 @@ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10])
|
||||
{
|
||||
buf[strlen(buf)-1]=0;
|
||||
tmpptr=buf;
|
||||
key=strsep(&tmpptr,":");
|
||||
//key=strsep(&tmpptr,":");
|
||||
value=strtoul(tmpptr,NULL,0);
|
||||
bitInfo[pos]= value;
|
||||
pos++;
|
||||
|
@@ -237,14 +237,14 @@ std::string CyhookHandler::BuildHeader(bool cache) {
|
||||
std::string result = "";
|
||||
|
||||
const char *responseString = "";
|
||||
const char *infoString = 0;
|
||||
//const char *infoString = 0;
|
||||
|
||||
// get Info Index
|
||||
for (unsigned int i = 0; i < (sizeof(httpResponseNames)
|
||||
/ sizeof(httpResponseNames[0])); i++)
|
||||
if (httpResponseNames[i].type == httpStatus) {
|
||||
responseString = httpResponseNames[i].name;
|
||||
infoString = httpResponseNames[i].info;
|
||||
//infoString = httpResponseNames[i].info;
|
||||
break;
|
||||
}
|
||||
// print Status-line
|
||||
|
@@ -660,14 +660,14 @@ const CyParser::TyFuncCall CyParser::yFuncCallList[] = {
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CyParser::YWeb_cgi_func(CyhookHandler *hh, std::string ycmd) {
|
||||
std::string func, para, yresult = "ycgi func not found";
|
||||
bool found = false;
|
||||
//bool found = false;
|
||||
ySplitString(ycmd, " ", func, para);
|
||||
|
||||
for (unsigned int i = 0; i < (sizeof(yFuncCallList)
|
||||
/ sizeof(yFuncCallList[0])); i++)
|
||||
if (func == yFuncCallList[i].func_name) {
|
||||
yresult = (this->*yFuncCallList[i].pfunc)(hh, para);
|
||||
found = true;
|
||||
//found = true;
|
||||
break;
|
||||
}
|
||||
log_level_printf(8, "<yparser: func>:%s Result:%s\n", func.c_str(),
|
||||
|
Reference in New Issue
Block a user