From 20ddb079068f76f5cfd3babc863bc802c5a16502 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Tue, 12 Jul 2011 10:07:07 +0000 Subject: [PATCH] Use NULL instead of 0 for third argument of sigaction(2). Pointed by: kib MFC after: 2 weeks --- sbin/newfs_msdos/newfs_msdos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index a4deb231cc41..6d8fa7eb52f5 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -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) {