Use NULL instead of 0 for third argument of sigaction(2).

Pointed by:	kib
MFC after:	2 weeks
This commit is contained in:
Andrey V. Elsukov 2011-07-12 10:07:07 +00:00
parent 40be4bee6f
commit 20ddb07906

View File

@ -611,7 +611,7 @@ main(int argc, char *argv[])
dir = bpb.bpbResSectors + (bpb.bpbFATsecs ? bpb.bpbFATsecs : bpb.bpbBigFATsecs) * bpb.bpbFATs;
memset(&si_sa, 0, sizeof(si_sa));
si_sa.sa_handler = infohandler;
if (sigaction(SIGINFO, &si_sa, 0) == -1)
if (sigaction(SIGINFO, &si_sa, NULL) == -1)
err(1, "sigaction SIGINFO");
for (lsn = 0; lsn < dir + (fat == 32 ? bpb.bpbSecPerClust : rds); lsn++) {
if (got_siginfo) {