diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-07-17 00:15:52 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-07-17 00:15:52 +0000 |
commit | 368034e1995e8cb27b96f98df0fe07542f446023 (patch) | |
tree | 657a082d61c0b19a2b4cabea4502742ee6c66937 /src/signal_check.c | |
parent | 232dcf4b9456e44f6829229671c04a781d0f353b (diff) |
sparse: replace 0 (integer) usage with NULL where appropriate
Probably pedantic, but yes, might as well in case we run into
strange platforms where NULL is something strange.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4380 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/signal_check.c')
-rw-r--r-- | src/signal_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signal_check.c b/src/signal_check.c index c06525350..ab6ffce74 100644 --- a/src/signal_check.c +++ b/src/signal_check.c @@ -20,6 +20,7 @@ #include "signal_check.h" #include <errno.h> +#include <stddef.h> volatile sig_atomic_t __caught_signals[NSIG]; @@ -33,7 +34,7 @@ static void __set_signal_handler(int sig, void (* handler)(int)) struct sigaction act; act.sa_flags = 0; act.sa_handler = handler; - while(sigaction(sig, &act, 0) && errno==EINTR); + while(sigaction(sig, &act, NULL) && errno==EINTR); } void signal_handle(int sig) |