diff options
Diffstat (limited to 'trayfreq_set')
-rw-r--r-- | trayfreq_set/trayfreq_set.c | 3 | ||||
-rw-r--r-- | trayfreq_set/trayfreq_set_interface.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/trayfreq_set/trayfreq_set.c b/trayfreq_set/trayfreq_set.c index a9de8c1..737b7c9 100644 --- a/trayfreq_set/trayfreq_set.c +++ b/trayfreq_set/trayfreq_set.c @@ -22,7 +22,6 @@ #include <libintl.h> #include <locale.h> -#include "../strings.h" #include "../freq_tray/getfreq.h" #include "../freq_tray/getcore.h" @@ -31,7 +30,7 @@ char file_path[100]; void prepare_path(const char* file, const char* core) { - // Sanatise core to make sure there's not monkey business going on -- it's only an integer + // Sanatise core to make sure there's not monkey business going on int core_i = atoi(core); sprintf(file_path, "/sys/devices/system/cpu/cpu%d/cpufreq/%s", core_i, file); diff --git a/trayfreq_set/trayfreq_set_interface.h b/trayfreq_set/trayfreq_set_interface.h index 3f1cdbc..bdbf652 100644 --- a/trayfreq_set/trayfreq_set_interface.h +++ b/trayfreq_set/trayfreq_set_interface.h @@ -17,9 +17,9 @@ ************************************************************************/ #ifndef TRAYFREQ_SET_INTERFACE_H -#define TRAYFREQ_SET_INTERFACE_H 1 +#define TRAYFREQ_SET_INTERFACE_H void si_gov(char* gov, int core); void si_freq(int freq, int core); -#endif
\ No newline at end of file +#endif |