mirror of
				https://github.com/rofafor/vdr-plugin-femon.git
				synced 2023-10-10 11:36:53 +00:00 
			
		
		
		
	Fixed cppcheck warnings.
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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 (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());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user