Fix warning from hwmon.c in plugins/sysinfo
This commit is contained in:
		
							parent
							
								
									1181b56211
								
							
						
					
					
						commit
						73badc67ff
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -34,6 +34,7 @@ int hwmon_chip_present()
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if 0
 | 
				
			||||||
void get_hwmon_chip_name(char *name)
 | 
					void get_hwmon_chip_name(char *name)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	char *position, buffer[bsize];
 | 
						char *position, buffer[bsize];
 | 
				
			||||||
| 
						 | 
					@ -47,6 +48,7 @@ void get_hwmon_chip_name(char *name)
 | 
				
			||||||
		fclose(fp);
 | 
							fclose(fp);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void get_hwmon_temp(unsigned int *value, unsigned int *sensor)
 | 
					void get_hwmon_temp(unsigned int *value, unsigned int *sensor)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -438,8 +438,10 @@ int xs_parse_hwmon_chip(char *chip)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (!hwmon_chip_present())
 | 
						if (!hwmon_chip_present())
 | 
				
			||||||
		return 1;
 | 
							return 1;
 | 
				
			||||||
 | 
					#if 0
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		get_hwmon_chip_name(chip);
 | 
							get_hwmon_chip_name(chip);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue