diff options
author | PA4WDH | 2024-08-26 19:56:17 +0200 |
---|---|---|
committer | PA4WDH | 2024-08-26 19:56:17 +0200 |
commit | f47ea91e2d1b04aea2c23f40c98801e948d7a950 (patch) | |
tree | a949edc52e7ad7bbb2413107fd29ab1dc5af85c9 /cputemp.c | |
parent | Small fixes in cpulist.c (diff) | |
download | cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.gz cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.bz2 cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.zip |
Add more compiler warnings
Diffstat (limited to 'cputemp.c')
-rw-r--r-- | cputemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ void cputemp_read_hwmon(char *hwmon,char *sensor_name,struct s_sensor *sensor) DEBUG2_CPUTEMP("Found label %s\n",hwmon_dirent->d_name); snprintf(name_file,258,"%s/%s",hwmon,hwmon_dirent->d_name); snprintf(input_file,258,"%s/%s",hwmon,hwmon_dirent->d_name); - offset=strlen(input_file)-5; + offset=(int) strlen(input_file)-5; strncpy(input_file+offset,"input",6); cputemp_match_and_validate(name_file,input_file,sensor_name,sensor); } |