diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-07-21 20:26:53 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-07-21 20:26:53 +0200 |
commit | 230f3167b70b5d73b3d9c0c650c9a654c06ccb51 (patch) | |
tree | ffb0bd3f9abc4c5c9bd88c566ae5a08078662f17 /src/get_cpu_temperature.c | |
parent | 34ba9fa9083c655e5ba06cecd46da157eb07d980 (diff) |
Add modelines and retab! all files
Diffstat (limited to 'src/get_cpu_temperature.c')
-rw-r--r-- | src/get_cpu_temperature.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/get_cpu_temperature.c b/src/get_cpu_temperature.c index 56a559c..d000d2d 100644 --- a/src/get_cpu_temperature.c +++ b/src/get_cpu_temperature.c @@ -1,3 +1,4 @@ +// vim:ts=8:expandtab #include <stdlib.h> #include <limits.h> #include <stdio.h> @@ -13,8 +14,8 @@ const char *get_cpu_temperature_info() { static char buf[16]; long int temp; - slurp(thermal_zone, buf, sizeof(buf)); - temp = strtol(buf, NULL, 10); + slurp(thermal_zone, buf, sizeof(buf)); + temp = strtol(buf, NULL, 10); if (temp == LONG_MIN || temp == LONG_MAX || temp <= 0) (void)snprintf(buf, sizeof(buf), "T: ? C"); |