Re: [ovs-dev] [PATCH v2] timeval: Initialize 'unix_epoch' for Windows correctly.

2014-07-03 Thread Ben Pfaff
On Fri, Jun 27, 2014 at 09:50:24AM -0700, Gurucharan Shetty wrote: > Till now, we were initializing 'unix_epoch' through time_init(). > But if there was a call directly to xgettimeofday(), we would > miss the initialization causing overflows. This commit fixes it > by pre-calculating the value and

[ovs-dev] [PATCH v2] timeval: Initialize 'unix_epoch' for Windows correctly.

2014-06-27 Thread Gurucharan Shetty
Till now, we were initializing 'unix_epoch' through time_init(). But if there was a call directly to xgettimeofday(), we would miss the initialization causing overflows. This commit fixes it by pre-calculating the value and assigning it globally. Also add-in a missing return statement. Reported-b