summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Steinhaus <hsteinhaus@gmx.de>2015-11-12 08:56:47 +0100
committerHolger Steinhaus <hsteinhaus@gmx.de>2015-11-12 09:22:23 +0100
commitc6f1ec91cbf6f608493bd61f1f508d9e045f9339 (patch)
treee7fade50de3da5082d5da8ff96da6be35efc6237
parenta40106d5c33463fb2071881db564a39f302f5163 (diff)
downloadvdr-plugin-mcli-c6f1ec91cbf6f608493bd61f1f508d9e045f9339.tar.gz
vdr-plugin-mcli-c6f1ec91cbf6f608493bd61f1f508d9e045f9339.tar.bz2
fixed more "uninitialized use" warnings
-rw-r--r--Makefile4
-rw-r--r--device.c2
-rw-r--r--mcast/common/recv_ccpp.c5
3 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3edc75d..44bae50 100644
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@ TMPDIR ?= /tmp
### The compiler options:
-export CFLAGS = $(call PKGCFG,cflags) -fPIC
-export CXXFLAGS = $(call PKGCFG,cxxflags) -fPIC
+export CFLAGS = $(call PKGCFG,cflags) -fPIC -Wall
+export CXXFLAGS = $(call PKGCFG,cxxflags) -fPIC -Wall
### The version number of VDR's plugin API:
diff --git a/device.c b/device.c
index e366a05..676750e 100644
--- a/device.c
+++ b/device.c
@@ -198,7 +198,7 @@ bool cMcliDevice::SetTempDisable (bool now)
}
//#endif
// printf("Device %d Receiving %d Priority %d\n",CardIndex () + 1, Receiving (true), Priority());
- if(!Receiving (true) && (((time(NULL)-m_last) >= m_disabletimeout)) || now) {
+ if((!Receiving (true) && (((time(NULL)-m_last) >= m_disabletimeout)) ) || now) {
recv_stop (m_r);
m_tuned = false;
if(GetCaEnable()) {
diff --git a/mcast/common/recv_ccpp.c b/mcast/common/recv_ccpp.c
index ce15e4c..bc02917 100644
--- a/mcast/common/recv_ccpp.c
+++ b/mcast/common/recv_ccpp.c
@@ -469,8 +469,8 @@ void *recv_ten (void *arg)
clock_t lastrecv=0;
int donetimeout=0;
- pthread_cleanup_push (clean_ccpp_thread, &c);
memset (&c, 0, sizeof (ccpp_thread_context_t));
+ pthread_cleanup_push (clean_ccpp_thread, &c);
c.buf=(xmlChar *)malloc(XML_BUFLEN);
if (!c.buf) {
@@ -599,8 +599,8 @@ void *recv_tra (void *arg)
unsigned int dstlen;
struct in6_addr tra;
- pthread_cleanup_push (clean_ccpp_thread, &c);
memset (&c, 0, sizeof (ccpp_thread_context_t));
+ pthread_cleanup_push (clean_ccpp_thread, &c);
c.buf=(xmlChar *)malloc(XML_BUFLEN);
if (!c.buf) {
@@ -1278,6 +1278,7 @@ void *recv_tca (void *arg)
netceiver_info_t nc_info;
struct in6_addr tca;
+ memset (&c, 0, sizeof (ccpp_thread_context_t));
pthread_cleanup_push (clean_ccpp_thread, &c);
c.buf=(xmlChar *)malloc(XML_BUFLEN);