[git commit nptl] libc: Add missing header for memset

Carmelo AMOROSO carmelo.amoroso at st.com
Wed Dec 16 11:11:23 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carmelo Amoroso wrote:
> commit: http://git.uclibc.org/uClibc/commit/?id=ab38c21ada116672ceed99e4f387dd93ac8e2dd2
> branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
> 
> 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 at st.com>

Well, indeed the libc/signal/sigset-cvt-mask.h header was already
including <string.h> for nptl branch, so the comment is not absolutely
correct.
It was taken form the related commit for master branch that due to
this difference is not just a cherry-pick commit.

My apologies,
Carmelo

> ---
>  libc/signal/sigblock.c   |    2 --
>  libc/signal/sigpause.c   |    1 -
>  libc/signal/sigsetmask.c |    2 --
>  3 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/libc/signal/sigblock.c b/libc/signal/sigblock.c
> index c3b79d9..ad3acb0 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 8c4e83e..0856ba2 100644
> --- a/libc/signal/sigpause.c
> +++ b/libc/signal/sigpause.c
> @@ -27,7 +27,6 @@
>  #include <sysdep-cancel.h>
>  #endif
>  
> -
>  #include "sigset-cvt-mask.h"
>  
>  /* Set the mask of blocked signals to MASK,
> diff --git a/libc/signal/sigsetmask.c b/libc/signal/sigsetmask.c
> index 6d0a505..64c8ad6 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"
>  

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAksowFsACgkQoRq/3BrK1s+0owCbBtI0OB49ny/e7TsGq6pOJIod
rtQAoMopXkPsPoWK0c3zB2ogO9a6t81m
=cQA8
-----END PGP SIGNATURE-----


More information about the uClibc-cvs mailing list