From a4bd4af6221cd4825d8891f579e2ed571255b987 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Fri, 26 Jul 2024 19:09:21 +0200 Subject: Fix more typos --- cpufreq.c | 4 ++-- sysfs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpufreq.c b/cpufreq.c index 6497eff..df21b36 100644 --- a/cpufreq.c +++ b/cpufreq.c @@ -8,7 +8,7 @@ #define DIR_BUF_SIZE 1024 -// Validate if we found a file named cpu[0-9][0-9 +// Validate if we found a file named cpu[0-9][0-9] int cpufreq_is_cpu(char *name) { if (strncmp(name,"cpu",3)!=0) return 0; @@ -93,7 +93,7 @@ int cpufreq_set_str(char *parameter,char *value,long int checkdelay) } // This is just a wrapper around cpufreq_set_str with long int to string -// convertion +// conversion int cpufreq_set_long_int(char *parameter,long int value,long int checkdelay) { char buf[255]; diff --git a/sysfs.c b/sysfs.c index ff3bb67..dc2b822 100644 --- a/sysfs.c +++ b/sysfs.c @@ -65,7 +65,7 @@ int sysfs_write_str(char *sysfs_file,char *value,long int checkdelay) close(sysfs_handle); DEBUG2_SYSFS("Written %zd bytes\n",len); -// What if instructed to +// Wait if instructed to if (checkdelay>0) usleep(checkdelay); // Validate we actually set what we want to set -- cgit v1.2.3