X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-timeval.c;h=d277fc96983f12171091d6e187d90de6cb1d5eb6;hb=da2db2cb3114341d837c6f13ae8104d4b4bf4659;hp=b336f3957e63467a75f33e82a1e505ee5ade8d73;hpb=02029a699a1642043ca50d90cf4a39949708426e;p=openvswitch diff --git a/tests/test-timeval.c b/tests/test-timeval.c index b336f395..d277fc96 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, Inc. * * 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); } @@ -93,7 +93,6 @@ main(int argc, char *argv[]) { proctitle_init(argc, argv); set_program_name(argv[0]); - time_init(); if (argc != 2) { usage();