summaryrefslogtreecommitdiff
path: root/src/get_cpu_temperature.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-07-21 20:26:53 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-07-21 20:26:53 +0200
commit230f3167b70b5d73b3d9c0c650c9a654c06ccb51 (patch)
treeffb0bd3f9abc4c5c9bd88c566ae5a08078662f17 /src/get_cpu_temperature.c
parent34ba9fa9083c655e5ba06cecd46da157eb07d980 (diff)
Add modelines and retab! all files
Diffstat (limited to 'src/get_cpu_temperature.c')
-rw-r--r--src/get_cpu_temperature.c5
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");