am 5a6f593b: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."

* commit '5a6f593b6197b96f980d9d45f9a981ef8705caf4':
  Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type.
This commit is contained in:
Brad Fitzpatrick 2011-03-16 11:41:24 -07:00 committed by Android Git Automerger
commit c59b248241
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);