summaryrefslogtreecommitdiffstats
path: root/libc/unistd
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2011-03-16 11:43:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-16 11:43:29 -0700
commit38e53adaddb474d41d1b6282eec38b71b8447d5d (patch)
tree004cd6c22daa4cd50796282fc5dc850595d57eba /libc/unistd
parent621bc53339c10e86d92ec89eefbb16af33229774 (diff)
parentc59b248241b18492d20e112230a907c14400275b (diff)
downloadbionic-38e53adaddb474d41d1b6282eec38b71b8447d5d.zip
bionic-38e53adaddb474d41d1b6282eec38b71b8447d5d.tar.gz
bionic-38e53adaddb474d41d1b6282eec38b71b8447d5d.tar.bz2
am c59b2482: am 5a6f593b: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."
* commit 'c59b248241b18492d20e112230a907c14400275b': Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type.
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/sigblock.c1
-rw-r--r--libc/unistd/sigsetmask.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/unistd/sigblock.c b/libc/unistd/sigblock.c
index 863d7da..176bc13 100644
--- a/libc/unistd/sigblock.c
+++ b/libc/unistd/sigblock.c
@@ -37,6 +37,7 @@ sigblock(int mask)
sigset_t the_sigset;
} in, out;
+ sigemptyset(&in.the_sigset);
in.the_mask = mask;
n = sigprocmask(SIG_BLOCK, &in.the_sigset, &out.the_sigset);
diff --git a/libc/unistd/sigsetmask.c b/libc/unistd/sigsetmask.c
index 4f46458..7842bf1 100644
--- a/libc/unistd/sigsetmask.c
+++ b/libc/unistd/sigsetmask.c
@@ -38,6 +38,7 @@ sigsetmask(int mask)
sigset_t the_sigset;
} in, out;
+ sigemptyset(&in.the_sigset);
in.the_mask = mask;
n = sigprocmask(SIG_SETMASK, &in.the_sigset, &out.the_sigset);