Fix style bug.

Prompted by:	bde
This commit is contained in:
Diomidis Spinellis 2006-01-04 07:50:54 +00:00
parent f8ccc6ceb9
commit c3d78136c9
2 changed files with 4 additions and 4 deletions

View File

@ -2738,8 +2738,8 @@ getutimes(usrtvp, tvpseg, tsp)
tvp = tv;
}
if (tvp[0].tv_usec < 0 || tvp[0].tv_usec > 999999 ||
tvp[1].tv_usec < 0 || tvp[1].tv_usec > 999999)
if (tvp[0].tv_usec < 0 || tvp[0].tv_usec >= 1000000 ||
tvp[1].tv_usec < 0 || tvp[1].tv_usec >= 1000000)
return (EINVAL);
TIMEVAL_TO_TIMESPEC(&tvp[0], &tsp[0]);
TIMEVAL_TO_TIMESPEC(&tvp[1], &tsp[1]);

View File

@ -2738,8 +2738,8 @@ getutimes(usrtvp, tvpseg, tsp)
tvp = tv;
}
if (tvp[0].tv_usec < 0 || tvp[0].tv_usec > 999999 ||
tvp[1].tv_usec < 0 || tvp[1].tv_usec > 999999)
if (tvp[0].tv_usec < 0 || tvp[0].tv_usec >= 1000000 ||
tvp[1].tv_usec < 0 || tvp[1].tv_usec >= 1000000)
return (EINVAL);
TIMEVAL_TO_TIMESPEC(&tvp[0], &tsp[0]);
TIMEVAL_TO_TIMESPEC(&tvp[1], &tsp[1]);