diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-07-11 22:50:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-07-11 22:50:16 +0000 |
commit | 6080ecdf3cfc34b45bdfc7669f03359adc77d959 (patch) | |
tree | ef17e0e804bc056180e9528b426ff469d430207b /sysdeps/unix/sysv/linux/sleep.c | |
parent | f05bf186c119ff068fd4e7ca85756b9439fc7778 (diff) | |
download | glibc-6080ecdf3cfc34b45bdfc7669f03359adc77d959.tar.gz glibc-6080ecdf3cfc34b45bdfc7669f03359adc77d959.tar.xz glibc-6080ecdf3cfc34b45bdfc7669f03359adc77d959.zip |
Update.
* sysdeps/unix/sysv/linux/sigwait.c: Include string.h. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned int before assigning to max to avoid warnings. 2003-07-11 Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/sleep.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sleep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sleep.c b/sysdeps/unix/sysv/linux/sleep.c index ade9ff4116..d94e4f62fd 100644 --- a/sysdeps/unix/sysv/linux/sleep.c +++ b/sysdeps/unix/sysv/linux/sleep.c @@ -40,7 +40,8 @@ cl (void *arg) unsigned int __sleep (unsigned int seconds) { - const unsigned int max = ((unsigned long int) (~((time_t) 0))) >> 1; + const unsigned int max + = (unsigned int) (((unsigned long int) (~((time_t) 0))) >> 1); struct timespec ts; sigset_t set, oset; unsigned int result; |