aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp.c
diff options
context:
space:
mode:
authorPA4WDH2024-08-26 19:56:17 +0200
committerPA4WDH2024-08-26 19:56:17 +0200
commitf47ea91e2d1b04aea2c23f40c98801e948d7a950 (patch)
treea949edc52e7ad7bbb2413107fd29ab1dc5af85c9 /cputemp.c
parentSmall fixes in cpulist.c (diff)
downloadcputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.gz
cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.tar.bz2
cputemp2maxfreq-f47ea91e2d1b04aea2c23f40c98801e948d7a950.zip
Add more compiler warnings
Diffstat (limited to 'cputemp.c')
-rw-r--r--cputemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cputemp.c b/cputemp.c
index ca616b1..95ce517 100644
--- a/cputemp.c
+++ b/cputemp.c
@@ -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);
}