]> git.sesse.net Git - stockfish/blobdiff - src/timeoday.cpp
Small cleanup in misc.cpp
[stockfish] / src / timeoday.cpp
index 1078af305178a4bb6cf4932ed19c349e3e5c49ca..6909c2dc26208700e8883b3c8797d5b06971d928 100644 (file)
@@ -2,21 +2,21 @@
    (c) Copyright 1992 Eric Backus
 
    This software may be used freely so long as this copyright notice is
    (c) Copyright 1992 Eric Backus
 
    This software may be used freely so long as this copyright notice is
-   left intact.  There is no warrantee on this software.
- */
+   left intact. There is no warrantee on this software.
+*/
+
 #include <windows.h>
 #include <time.h>
 #include "dos.h"
 
 #include <windows.h>
 #include <time.h>
 #include "dos.h"
 
-
-int             gettimeofday(struct timeval * tp, struct timezone * tzp)
+int gettimeofday(struct timeval* tp, struct timezone*)
 {
 {
-    SYSTEMTIME      systime;
-
-    if (tp) {
-        struct tm       tmrec;
-        time_t          theTime = time(NULL);
+    SYSTEMTIME systime;
 
 
+    if (tp)
+    {
+        struct tm tmrec;
+        time_t theTime = time(NULL);
 
         tmrec = *localtime(&theTime);
         tp->tv_sec = mktime(&tmrec);
 
         tmrec = *localtime(&theTime);
         tp->tv_sec = mktime(&tmrec);