mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
timeval: remove compilation warning by casting (#2417)
This is fixes #2358
This commit is contained in:
parent
db1b2c7fe9
commit
6231a89aa3
@ -128,7 +128,7 @@ struct curltime Curl_now(void)
|
||||
struct curltime ret;
|
||||
(void)gettimeofday(&now, NULL);
|
||||
ret.tv_sec = now.tv_sec;
|
||||
ret.tv_usec = now.tv_usec;
|
||||
ret.tv_usec = (int)now.tv_usec;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user