diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-12-13 02:20:07 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-12-13 02:20:07 -0500 |
commit | a7dbcf5c8ca7edb7a46eb276031ad1df4131135b (patch) | |
tree | 969708c0db27a58609d2636c752c2e1e23406640 /src/signal/sighold.c | |
parent | 571744447c23f91feb6439948f3a619aca850dfb (diff) | |
download | musl-a7dbcf5c8ca7edb7a46eb276031ad1df4131135b.tar.gz musl-a7dbcf5c8ca7edb7a46eb276031ad1df4131135b.tar.bz2 musl-a7dbcf5c8ca7edb7a46eb276031ad1df4131135b.tar.xz musl-a7dbcf5c8ca7edb7a46eb276031ad1df4131135b.zip |
use 0 instead of NULL for null pointer constants
and thereby remove otherwise-unnecessary inclusion of stddef.h
Diffstat (limited to 'src/signal/sighold.c')
-rw-r--r-- | src/signal/sighold.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/signal/sighold.c b/src/signal/sighold.c index 992812fd..cfa2306c 100644 --- a/src/signal/sighold.c +++ b/src/signal/sighold.c @@ -1,5 +1,4 @@ #include <signal.h> -#include <stddef.h> int sighold(int sig) { @@ -7,5 +6,5 @@ int sighold(int sig) sigemptyset(&mask); if (sigaddset(&mask, sig) < 0) return -1; - return sigprocmask(SIG_BLOCK, &mask, NULL); + return sigprocmask(SIG_BLOCK, &mask, 0); } |