OSDN Git Service

libc: Add missing header for memset
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 16 Dec 2009 11:07:43 +0000 (12:07 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 16 Dec 2009 11:07:43 +0000 (12:07 +0100)
Silence compiler warning by adding the missing string.h header
to include memset prototype.
Do some code tidy-up removing commented out libc_hidden_proto macros
in the meanwhile.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
libc/signal/sigblock.c
libc/signal/sigpause.c
libc/signal/sigset-cvt-mask.h
libc/signal/sigsetmask.c

index c3b79d9..ad3acb0 100644 (file)
@@ -19,8 +19,6 @@
 #define __UCLIBC_HIDE_DEPRECATED__
 #include <errno.h>
 #include <signal.h>
-#include <string.h>
-
 
 #include "sigset-cvt-mask.h"
 
index e465fac..5280ee0 100644 (file)
@@ -25,7 +25,6 @@
 #include <stddef.h>            /* For NULL.  */
 #include <string.h>
 
-
 #include "sigset-cvt-mask.h"
 
 /* Set the mask of blocked signals to MASK,
index 76dd01c..d4c2dc7 100644 (file)
@@ -19,6 +19,8 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <string.h>
+
 static __inline__ void __attribute__ ((unused))
 sigset_set_old_mask (sigset_t *set, int mask)
 {
index 6d0a505..64c8ad6 100644 (file)
@@ -19,8 +19,6 @@
 #define __UCLIBC_HIDE_DEPRECATED__
 #include <errno.h>
 #include <signal.h>
-#include <string.h>
-
 
 #include "sigset-cvt-mask.h"