mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Fix a compiler warning. With this fix, a negative time can be converted to
a struct timeval and back to the original nanoseconds correctly.
This commit is contained in:
parent
3b5f179d2a
commit
2d0196c405
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255009
|
@ -210,7 +210,7 @@ struct timeval
|
|||
ns_to_timeval(const int64_t nsec)
|
||||
{
|
||||
struct timeval tv;
|
||||
uint32_t rem;
|
||||
long rem;
|
||||
|
||||
if (nsec == 0) {
|
||||
tv.tv_sec = 0;
|
||||
|
|
Loading…
Reference in a new issue