diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-06-10 19:03:29 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-07-06 15:47:44 +0200 |
commit | d1cec2632dab678d6eb55c319756e98faf95a7f0 (patch) | |
tree | 0fafb68e77636ce10d83aa5b11d67442156ccfea /src | |
parent | fcabfc889a80232288b0c78eaa25fca92e98248f (diff) |
Fix undeclared identifier thermal_zone error
when THERMAL_ZONE is not defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/print_cpu_temperature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c index c0a6baa..71ee4d4 100644 --- a/src/print_cpu_temperature.c +++ b/src/print_cpu_temperature.c @@ -261,8 +261,8 @@ void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const OUTPUT_FULL_TEXT(buffer); return; error: -#endif free(thermal_zone); +#endif OUTPUT_FULL_TEXT("can't read temp"); (void)fputs("i3status: Cannot read temperature. Verify that you have a thermal zone in /sys/class/thermal or disable the cpu_temperature module in your i3status config.\n", stderr); |