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:
Jung-uk Kim 2013-08-28 22:57:49 +00:00
parent 3b5f179d2a
commit 2d0196c405
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255009

View File

@ -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;