1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Fixed cppcheck warnings.

This commit is contained in:
Rolf Ahrenberg 2013-03-06 09:28:16 +02:00
parent 046c94d39c
commit 10b8463283
2 changed files with 2 additions and 2 deletions

View File

@ -145,4 +145,4 @@ clean:
.PHONY: cppcheck
cppcheck:
@cppcheck --enable=all -v -f $(OBJS:%.o=%.c)
@cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.c)

View File

@ -136,7 +136,7 @@ bool cPluginFemon::Service(const char *Id, void *Data)
{
if (strcmp(Id,"FemonService-v1.0") == 0) {
if (Data) {
FemonService_v1_0 *data = (FemonService_v1_0*)Data;
FemonService_v1_0 *data = reinterpret_cast<FemonService_v1_0*>(Data);
if (!cDevice::ActualDevice())
return false;
cDvbDevice *dev = getDvbDevice(cDevice::ActualDevice());