remove another invalid skip of locking in ungetwc
[oweals/musl.git] / src / signal / sigset.c
index cbe462847f70c5083038420595e78f2815428efb..0d7b4564677b8f18d0b10979eb937086cd952007 100644 (file)
@@ -1,5 +1,4 @@
 #include <signal.h>
-#include <stddef.h>
 
 void (*sigset(int sig, void (*handler)(int)))(int)
 {
@@ -11,7 +10,7 @@ void (*sigset(int sig, void (*handler)(int)))(int)
                return SIG_ERR;
        
        if (handler == SIG_HOLD) {
-               if (sigaction(sig, NULL, &sa_old) < 0)
+               if (sigaction(sig, 0, &sa_old) < 0)
                        return SIG_ERR;
                if (sigprocmask(SIG_BLOCK, &mask, &mask) < 0)
                        return SIG_ERR;