summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Steinhaus <hsteinhaus@gmx.de>2015-11-11 22:33:38 +0100
committerHolger Steinhaus <hsteinhaus@gmx.de>2015-11-11 22:33:38 +0100
commita40106d5c33463fb2071881db564a39f302f5163 (patch)
treea5ec35c22cd258e1d3e764625d69b8ca44965ede
parentddeadc3215daa9285696b57d2fc816221f169f04 (diff)
downloadvdr-plugin-mcli-a40106d5c33463fb2071881db564a39f302f5163.tar.gz
vdr-plugin-mcli-a40106d5c33463fb2071881db564a39f302f5163.tar.bz2
resolved some warnings
-rw-r--r--mcast/client/mmi_handler.c2
-rw-r--r--mcast/common/mld_client.c5
-rw-r--r--mcli.c4
3 files changed, 4 insertions, 7 deletions
diff --git a/mcast/client/mmi_handler.c b/mcast/client/mmi_handler.c
index 716c7f1..3787892 100644
--- a/mcast/client/mmi_handler.c
+++ b/mcast/client/mmi_handler.c
@@ -219,6 +219,8 @@ int mmi_get_data (xmlChar * xmlbuff, int buffersize, mmi_info_t * mmi_info)
xmlKeepBlanksDefault (0); //reomve this f. "text" nodes
c.doc = xmlParseMemory ((char *) xmlbuff, buffersize);
+ c.str = NULL;
+ c.key = NULL;
root_element = xmlDocGetRootElement (c.doc);
pthread_cleanup_push (clean_xml_parser_thread, &c);
diff --git a/mcast/common/mld_client.c b/mcast/common/mld_client.c
index d291466..7369174 100644
--- a/mcast/common/mld_client.c
+++ b/mcast/common/mld_client.c
@@ -31,9 +31,6 @@ int send_mldv2_report (struct intnode *intn, int grec_number, struct in6_addr *m
int mca_index, src_index;
int count = 0;
- bool any = false;
-
-
//printf("creating multicast listener report packet....\n");
//printf("size src = %d size grec = %d \n",sizeof(*src),sizeof(*grec));
if (intn->mtu < sizeof (*packet)) {
@@ -156,8 +153,6 @@ int send_mldv2_report (struct intnode *intn, int grec_number, struct in6_addr *m
}
/* Nothing added yet */
- any = false;
-
for (src_index = 0; src_index < srcn || (!srcn && src_index == 0); src_index++) {
//check for duplicate source reocrds and any address
diff --git a/mcli.c b/mcli.c
index 8bc2392..1455e1c 100644
--- a/mcli.c
+++ b/mcli.c
@@ -742,8 +742,8 @@ void cPluginMcli::Action (void)
if (netCVChanged) {
for(int j = 0; j < nci->cam_num; j++) {
- const char *camstate;
- const char *cammode;
+ const char *camstate = "";
+ const char *cammode = "";
switch(nci->cam[j].status) {
case DVBCA_CAMSTATE_MISSING: