comment some found not used variables

This commit is contained in:
[CST] Focus
2012-05-08 16:18:16 +04:00
parent f8a84f8787
commit 8e06495776
10 changed files with 21 additions and 22 deletions

View File

@@ -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();

View File

@@ -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++;

View File

@@ -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

View File

@@ -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(),