X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-timeval.c;h=442b27af6cd0fc90a6afc73839c86049af935d2c;hb=b0f7b9b5c98557d159e4a12f125eacbf2a04a25b;hp=99a600b21baf8b1304a26341cdc0c54ec64bcdfc;hpb=ff8bb7e76b2cdcbcf88cd2fac663ba517e4a659c;p=openvswitch diff --git a/tests/test-timeval.c b/tests/test-timeval.c index 99a600b2..442b27af 100644 --- a/tests/test-timeval.c +++ b/tests/test-timeval.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ gettimeofday_in_msec(void) { struct timeval tv; - assert(!gettimeofday(&tv, NULL)); + xgettimeofday(&tv); return timeval_to_msec(&tv); }