[ovs-git] Open vSwitch: timeval: Initialize 'unix_epoch' for Windows correctly. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jul 10 00:04:10 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  4537a423fb4c607fcbef53ab830e86250ba8748c (commit)
      from  17f2748d245e74249d46a590da0f7456ebb27e7c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4537a423fb4c607fcbef53ab830e86250ba8748c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4537a423fb4c607fcbef53ab830e86250ba8748c
Author: Gurucharan Shetty <gshetty at nicira.com>
		
timeval: Initialize 'unix_epoch' for Windows correctly.
		
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-by: Alessandro Pilotti <apilotti at cloudbasesolutions.com>
Reported-by: Linda Sun <lsun at vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/timeval.c |   22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list