Reindent and restyle
[sysstatus.git] / statuses / datetime.c
index 42b37aafb389006661ba4b5d4986db3b594f3f9e..abcc07b59d773344f138eeea3fbe53d2445903cb 100644 (file)
@@ -5,33 +5,30 @@
 
 void status_datetime()
 {
-       time_t nows = 0;
-       struct tm *nowtm;
+  time_t nows = 0;
+  struct tm *nowtm;
 
-       nows = time(NULL);
-       if (nows == ((time_t) -1))
-       {
-               printf(" ^fg(red)ERROR: DATETIME");
-               return;
-       }
+  nows = time(NULL);
+  if (nows == ((time_t) -1)) {
+    printf(" ^fg(red)ERROR: DATETIME");
+    return;
+  }
 
-       nowtm = localtime(&nows);
+  nowtm = localtime(&nows);
 
-       printf(" ^fg(#666666)%d.%d.%d  ^fg(grey)%d:%.2d"
+  printf(" ^fg(#666666)%d.%d.%d  ^fg(grey)%d:%.2d"
+        #ifdef SHOW_SECONDS
+        ":%.2d"
+        #endif
+        " "
+        ,nowtm -> tm_mday,
+        (nowtm -> tm_mon) + 1,
+        (nowtm -> tm_year) + 1900,
+        nowtm -> tm_hour,
+        nowtm -> tm_min
 
-               #ifdef SHOW_SECONDS
-               ":%.2d"
-               #endif
-               " "
-               ,nowtm -> tm_mday,
-               (nowtm -> tm_mon) + 1,
-               (nowtm -> tm_year) + 1900,
-               nowtm -> tm_hour,
-               nowtm -> tm_min
-
-               #ifdef SHOW_SECONDS
-               ,nowtm -> tm_sec
-               #endif
-
-               );
+        #ifdef SHOW_SECONDS
+        ,nowtm -> tm_sec
+        #endif
+    );
 }