This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Kill 4 warnings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]