From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>, Roland McGrath <roland@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Kill 4 warnings
Date: Fri, 11 Jul 2003 15:07:00 -0000 [thread overview]
Message-ID: <20030711150704.GJ20507@sunsite.ms.mff.cuni.cz> (raw)
Hi!
2003-07-11 Jakub Jelinek <jakub@redhat.com>
* 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 <signal.h>
#define __need_NULL
#include <stddef.h>
+#include <string.h>
#include <sysdep-cancel.h>
#include <sys/syscall.h>
--- 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 <signal.h>
#define __need_NULL
#include <stddef.h>
+#include <string.h>
#include <sysdep-cancel.h>
#include <sys/syscall.h>
--- 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 <errno.h>
#include <signal.h>
+#include <string.h>
#include <sysdep-cancel.h>
#include <sys/syscall.h>
--- 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
next reply other threads:[~2003-07-11 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-11 15:07 Jakub Jelinek [this message]
2003-07-11 22:50 ` Ulrich Drepper
-- strict thread matches above, loose matches on Subject: below --
2002-07-01 4:48 Jakub Jelinek
2002-07-10 20:00 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030711150704.GJ20507@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
--cc=roland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).