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:
parent
046c94d39c
commit
10b8463283
2
Makefile
2
Makefile
@ -145,4 +145,4 @@ clean:
|
|||||||
|
|
||||||
.PHONY: cppcheck
|
.PHONY: cppcheck
|
||||||
cppcheck:
|
cppcheck:
|
||||||
@cppcheck --enable=all -v -f $(OBJS:%.o=%.c)
|
@cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.c)
|
||||||
|
2
femon.c
2
femon.c
@ -136,7 +136,7 @@ bool cPluginFemon::Service(const char *Id, void *Data)
|
|||||||
{
|
{
|
||||||
if (strcmp(Id,"FemonService-v1.0") == 0) {
|
if (strcmp(Id,"FemonService-v1.0") == 0) {
|
||||||
if (Data) {
|
if (Data) {
|
||||||
FemonService_v1_0 *data = (FemonService_v1_0*)Data;
|
FemonService_v1_0 *data = reinterpret_cast<FemonService_v1_0*>(Data);
|
||||||
if (!cDevice::ActualDevice())
|
if (!cDevice::ActualDevice())
|
||||||
return false;
|
return false;
|
||||||
cDvbDevice *dev = getDvbDevice(cDevice::ActualDevice());
|
cDvbDevice *dev = getDvbDevice(cDevice::ActualDevice());
|
||||||
|
Loading…
Reference in New Issue
Block a user