From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20102 invoked by alias); 11 Jul 2003 15:07:08 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 20083 invoked from network); 11 Jul 2003 15:07:07 -0000 Received: from unknown (HELO localhost.localdomain) (195.113.19.66) by sources.redhat.com with SMTP; 11 Jul 2003 15:07:07 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h6BF75qO030301; Fri, 11 Jul 2003 17:07:05 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id h6BF74oa030299; Fri, 11 Jul 2003 17:07:04 +0200 Date: Fri, 11 Jul 2003 15:07:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Kill 4 warnings Message-ID: <20030711150704.GJ20507@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-07/txt/msg00007.txt.bz2 Hi! 2003-07-11 Jakub Jelinek * 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. --- libc/sysdeps/unix/sysv/linux/sigwait.c.jj 2003-06-17 16:44:31.000000000 -0400 +++ libc/sysdeps/unix/sysv/linux/sigwait.c 2003-07-11 09:56:27.000000000 -0400 @@ -20,6 +20,7 @@ #include #define __need_NULL #include +#include #include #include --- libc/sysdeps/unix/sysv/linux/sigwaitinfo.c.jj 2003-06-17 16:44:31.000000000 -0400 +++ libc/sysdeps/unix/sysv/linux/sigwaitinfo.c 2003-07-11 10:11:57.000000000 -0400 @@ -20,6 +20,7 @@ #include #define __need_NULL #include +#include #include #include --- libc/sysdeps/unix/sysv/linux/sigtimedwait.c.jj 2003-06-17 16:44:31.000000000 -0400 +++ libc/sysdeps/unix/sysv/linux/sigtimedwait.c 2003-07-11 10:12:15.000000000 -0400 @@ -18,6 +18,7 @@ #include #include +#include #include #include --- libc/sysdeps/unix/sysv/linux/sleep.c.jj 2003-07-11 10:13:54.000000000 -0400 +++ libc/sysdeps/unix/sysv/linux/sleep.c 2003-07-11 10:23:21.000000000 -0400 @@ -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; Jakub