1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* 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>
This commit is contained in:
Ulrich Drepper
2003-07-11 22:50:16 +00:00
parent f05bf186c1
commit 6080ecdf3c
10 changed files with 43 additions and 2 deletions

View File

@ -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;