Use sigemptyset to initialise sigset_t values.

sigset_t may not be implemented as an integral type.

Change-Id: I3f5ec86d6383685979d8d23ef508b6c609569b38
Signed-off-by: Raghu Gandham <raghu@mips.com>
This commit is contained in:
Chris Dearman 2011-03-10 11:12:27 -08:00 committed by Raghu Gandham
parent fed58049d5
commit c1519a52ef
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);