diff --git a/Makefile b/Makefile index 700d3c8..209a364 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/femon.c b/femon.c index a0c4e69..8ad4817 100644 --- a/femon.c +++ b/femon.c @@ -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(Data); if (!cDevice::ActualDevice()) return false; cDvbDevice *dev = getDvbDevice(cDevice::ActualDevice());