THRIFT-2023: gettimeofday implementation in Windows errors when no time
authorBen Craig <bencraig@apache.org>
Wed, 28 Aug 2013 20:08:23 +0000 (15:08 -0500)
committerBen Craig <bencraig@apache.org>
Wed, 28 Aug 2013 20:08:23 +0000 (15:08 -0500)
zone is passed in
Client: cpp
Patch: Ben Craig

lib/cpp/src/thrift/windows/GetTimeOfDay.cpp

index 1906302..c5667e4 100644 (file)
@@ -88,7 +88,7 @@ int thrift_gettimeofday(struct timeval * tv, struct timezone * tz)
         }
     }
 
-    return -1;
+    return 0;
 }
 
 int thrift_sleep(unsigned int seconds)