Browse Source

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>
Carmelo Amoroso 14 years ago
parent
commit
cbff4254e4
4 changed files with 2 additions and 5 deletions
  1. 0 2
      libc/signal/sigblock.c
  2. 0 1
      libc/signal/sigpause.c
  3. 2 0
      libc/signal/sigset-cvt-mask.h
  4. 0 2
      libc/signal/sigsetmask.c

+ 0 - 2
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"
 

+ 0 - 1
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,

+ 2 - 0
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)
 {

+ 0 - 2
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"