Reindent and restyle
[sysstatus.git] / statuses / fan.c
index 2be5b284f78ad8232d7cfa195a5b4ec4c322a4e3..84cfa9035f9d6cfc502c1a6c4047b5f8f4349f92 100644 (file)
@@ -5,23 +5,23 @@
 
 void status_fan(char *title, char *sysfile)
 {
-       char stline[16];
-       int stfile;
-       ssize_t stlen;
+  char stline[16];
+  int stfile;
+  ssize_t stlen;
 
-       stlen = fileRead(stline, sizeof(stline), sysfile);
-       if (stlen <= 0)
-               return;
+  stlen = fileRead(stline, sizeof(stline), sysfile);
+  if (stlen <= 0) {
+    return;
+  }
 
-       // Read a valid value? Sometimes we get garbage from sysfs...
-       if (stlen > 5)
-       {
-               printf(" ^fg(red)%sERROR ", title);
-               return;
-       }
+  // Read a valid value? Sometimes we get garbage from sysfs...
+  if (stlen > 5) {
+    printf(" ^fg(red)%sERROR ", title);
+    return;
+  }
 
-       fputs(" ^fg(#CCCCCC)", stdout);
-       fputs(title, stdout);
-       fwrite(stline, 1, stlen - 1, stdout);
-       fputs(" rpm ", stdout);
+  fputs(" ^fg(#CCCCCC)", stdout);
+  fputs(title, stdout);
+  fwrite(stline, 1, stlen - 1, stdout);
+  fputs(" rpm ", stdout);
 }