1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154011
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]);