aboutsummaryrefslogtreecommitdiff
path: root/getgov.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 17:23:34 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 17:23:34 +1200
commit956a6261ebfdf8fb3346b8935d0ec59c1c26df7c (patch)
tree55bedcb77c2066352e107f564062d8fff61008b4 /getgov.c
parent266cb3f209e752856b832af008cf7aba40be3cba (diff)
downloadparamano-956a6261ebfdf8fb3346b8935d0ec59c1c26df7c.tar.xz
Cleaning up common functions
Diffstat (limited to 'getgov.c')
-rw-r--r--getgov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/getgov.c b/getgov.c
index cff7329..df648a4 100644
--- a/getgov.c
+++ b/getgov.c
@@ -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;