diff options
author | alfred <alfred@FreeBSD.org> | 1999-08-19 23:18:07 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 1999-08-19 23:18:07 +0000 |
commit | 5268ae54b0dd37b4b34cf6d386d59eb4edf73e43 (patch) | |
tree | 47e17253e7bb41d9431d13752fac69bd0b3c3d2d /lib/libc_r | |
parent | 557b906ef8a8572a4a3828011b21ce414ce2e283 (diff) | |
download | FreeBSD-src-5268ae54b0dd37b4b34cf6d386d59eb4edf73e43.zip FreeBSD-src-5268ae54b0dd37b4b34cf6d386d59eb4edf73e43.tar.gz |
time_to_sleep->tv_nsec > 1000000000
-to-
time_to_sleep->tv_nsec >= 1000000000
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_nanosleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_nanosleep.c b/lib/libc_r/uthread/uthread_nanosleep.c index 1a1e173..41488ff 100644 --- a/lib/libc_r/uthread/uthread_nanosleep.c +++ b/lib/libc_r/uthread/uthread_nanosleep.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_nanosleep.c,v 1.7 1999/08/05 12:15:18 deischen Exp $ + * $Id: uthread_nanosleep.c,v 1.8 1999/08/19 23:06:10 alfred Exp $ */ #include <stdio.h> #include <errno.h> @@ -49,7 +49,7 @@ nanosleep(const struct timespec * time_to_sleep, /* Check if the time to sleep is legal: */ if (time_to_sleep == NULL || time_to_sleep->tv_sec < 0 || - time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec > 1000000000) { + time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec >= 1000000000) { /* Return an EINVAL error : */ errno = EINVAL; ret = -1; |