diff --git a/ares/ares__timeval.c b/ares/ares__timeval.c index 0d8bbfa65b..2fbf1688c2 100644 --- a/ares/ares__timeval.c +++ b/ares/ares__timeval.c @@ -46,7 +46,7 @@ struct timeval ares__tvnow(void) */ struct timeval now; struct timespec tsnow; - (void)clock_gettime(CLOCK_MONOTONIC, &tsnow) + (void)clock_gettime(CLOCK_MONOTONIC, &tsnow); now.tv_sec = tsnow.tv_sec; now.tv_usec = tsnow.tv_nsec / 1000; return now; diff --git a/lib/timeval.c b/lib/timeval.c index b36633384d..0bedfbe816 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -52,7 +52,7 @@ struct timeval curlx_tvnow(void) */ struct timeval now; struct timespec tsnow; - (void)clock_gettime(CLOCK_MONOTONIC, &tsnow) + (void)clock_gettime(CLOCK_MONOTONIC, &tsnow); now.tv_sec = tsnow.tv_sec; now.tv_usec = tsnow.tv_nsec / 1000; return now; diff --git a/src/curlutil.c b/src/curlutil.c index 12a7d2e065..a687a9a447 100644 --- a/src/curlutil.c +++ b/src/curlutil.c @@ -54,7 +54,7 @@ struct timeval cutil_tvnow(void) */ struct timeval now; struct timespec tsnow; - (void)clock_gettime(CLOCK_MONOTONIC, &tsnow) + (void)clock_gettime(CLOCK_MONOTONIC, &tsnow); now.tv_sec = tsnow.tv_sec; now.tv_usec = tsnow.tv_nsec / 1000; return now; diff --git a/tests/libtest/testutil.c b/tests/libtest/testutil.c index 8ed2b2f084..df90cdccb9 100644 --- a/tests/libtest/testutil.c +++ b/tests/libtest/testutil.c @@ -54,7 +54,7 @@ struct timeval tutil_tvnow(void) */ struct timeval now; struct timespec tsnow; - (void)clock_gettime(CLOCK_MONOTONIC, &tsnow) + (void)clock_gettime(CLOCK_MONOTONIC, &tsnow); now.tv_sec = tsnow.tv_sec; now.tv_usec = tsnow.tv_nsec / 1000; return now;