From f47ea91e2d1b04aea2c23f40c98801e948d7a950 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Mon, 26 Aug 2024 19:56:17 +0200 Subject: Add more compiler warnings --- cputemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cputemp.c') 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); } -- cgit v1.2.3