diff options
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/Examples/ex10.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index bc124a13c1..c689dc2164 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2002-08-26 Ulrich Drepper <drepper@redhat.com> + + * Examples/ex10.c (thread): tv_nsec == 1000000000 is already + overflow [PR libc/4244]. + 2002-08-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/timer_routines.c (thread_func): Make the diff --git a/linuxthreads/Examples/ex10.c b/linuxthreads/Examples/ex10.c index 8af1b6e1ca..9352f463a0 100644 --- a/linuxthreads/Examples/ex10.c +++ b/linuxthreads/Examples/ex10.c @@ -1,5 +1,5 @@ /* Tests for pthread_mutex_timedlock function. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Kaz Kylheku <kaz@ashi.footprints.net>, 2000. The GNU C Library is free software; you can redistribute it and/or @@ -67,7 +67,7 @@ thread (void *arg) ts.tv_nsec += TIMEOUT_NS; - if (ts.tv_nsec > 1000000000L) { + if (ts.tv_nsec >= 1000000000L) { ts.tv_sec++; ts.tv_nsec -= 1000000000L; } |