summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 12:07:43 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 12:07:43 +0100
commitcbff4254e48ff39f5930f972edc6dc9213161727 (patch)
treeea169911ec2f2dd49a5aae140f47fc0176756d9f /libc
parent9849c407e8e6732fbf417cb447937e3b3b9a54ec (diff)
libc: Add missing header for memset
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>
Diffstat (limited to 'libc')
-rw-r--r--libc/signal/sigblock.c2
-rw-r--r--libc/signal/sigpause.c1
-rw-r--r--libc/signal/sigset-cvt-mask.h2
-rw-r--r--libc/signal/sigsetmask.c2
4 files changed, 2 insertions, 5 deletions
diff --git a/libc/signal/sigblock.c b/libc/signal/sigblock.c
index c3b79d9ab..ad3acb0be 100644
--- a/libc/signal/sigblock.c
+++ b/libc/signal/sigblock.c
@@ -19,8 +19,6 @@
#define __UCLIBC_HIDE_DEPRECATED__
#include <errno.h>
#include <signal.h>
-#include <string.h>
-
#include "sigset-cvt-mask.h"
diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c
index e465fac7a..5280ee0a6 100644
--- a/libc/signal/sigpause.c
+++ b/libc/signal/sigpause.c
@@ -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,
diff --git a/libc/signal/sigset-cvt-mask.h b/libc/signal/sigset-cvt-mask.h
index 76dd01c7e..d4c2dc7ca 100644
--- a/libc/signal/sigset-cvt-mask.h
+++ b/libc/signal/sigset-cvt-mask.h
@@ -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)
{
diff --git a/libc/signal/sigsetmask.c b/libc/signal/sigsetmask.c
index 6d0a505a7..64c8ad687 100644
--- a/libc/signal/sigsetmask.c
+++ b/libc/signal/sigsetmask.c
@@ -19,8 +19,6 @@
#define __UCLIBC_HIDE_DEPRECATED__
#include <errno.h>
#include <signal.h>
-#include <string.h>
-
#include "sigset-cvt-mask.h"