eitd/sectionsdclient: unify new code and call it as it is ... it is XMLTV; ...

fix another compiler warning: the use of `tmpnam' is dangerous


Origin commit data
------------------
Commit: 04c41bfb83
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)

Origin message was:
------------------
- eitd/sectionsdclient: unify new code and call it as it is ... it is XMLTV; ...

fix another compiler warning: the use of `tmpnam' is dangerous
This commit is contained in:
vanhofen
2018-09-01 14:34:25 +02:00
parent eb46732cac
commit 682f0a7e32
7 changed files with 19 additions and 18 deletions

View File

@@ -1238,9 +1238,9 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
pthread_attr_destroy(&attr);
}
static void commandReadSIfromIPTVXML(int connfd, char *data, const unsigned dataLength)
static void commandReadSIfromXMLTV(int connfd, char *data, const unsigned dataLength)
{
pthread_t thrInsertIPTV;
pthread_t thrInsertXMLTV;
sendEmptyResponse(connfd, NULL, 0);
@@ -1256,7 +1256,7 @@ static void commandReadSIfromIPTVXML(int connfd, char *data, const unsigned data
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (pthread_create (&thrInsertIPTV, &attr, insertEventsfromHttp, (void *)url_tmp.c_str() ))
if (pthread_create (&thrInsertXMLTV, &attr, insertEventsfromXMLTV, (void *)url_tmp.c_str() ))
{
perror("sectionsd: pthread_create()");
}
@@ -1300,7 +1300,7 @@ static s_cmd_table connectionCommands[sectionsd::numberOfCommands] = {
{ commandReadSIfromXML, "commandReadSIfromXML" },
{ commandWriteSI2XML, "commandWriteSI2XML" },
{ commandSetConfig, "commandSetConfig" },
{ commandReadSIfromIPTVXML, "commandReadSIfromIPTVXML" },
{ commandReadSIfromXMLTV, "commandReadSIfromXMLTV" },
};
bool sectionsd_parse_command(CBasicMessage::Header &rmsg, int connfd)