diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-09-01 17:23:34 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-09-01 17:23:34 +1200 |
commit | 956a6261ebfdf8fb3346b8935d0ec59c1c26df7c (patch) | |
tree | 55bedcb77c2066352e107f564062d8fff61008b4 /getgov.c | |
parent | 266cb3f209e752856b832af008cf7aba40be3cba (diff) | |
download | paramano-956a6261ebfdf8fb3346b8935d0ec59c1c26df7c.tar.xz |
Cleaning up common functions
Diffstat (limited to 'getgov.c')
-rw-r--r-- | getgov.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ bool gg_current(int core, char* out, int size) char *path; asprintf(&path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", core); - if (!(fd = check_for_file(path))) + if (!(fd = fopen(path, "r"))) { free(path); return false; @@ -89,7 +89,7 @@ bool gg_available(int core, char* out, int size) FILE *fd; asprintf(&path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors", core); - if (!(fd = check_for_file(path))) + if (!(fd = fopen(path, "r"))) { free(path); return false; |