From da881cad0763c5931a6ffa4bc197bbd96f210b6d Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 29 Aug 2010 16:38:08 +0000 Subject: [PATCH] Use NULL instead of 0 for pointer in example. MFC after: 3 days --- lib/libc/sys/sigaltstack.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2 index 6119c6a3abce..d9cb27362592 100644 --- a/lib/libc/sys/sigaltstack.2 +++ b/lib/libc/sys/sigaltstack.2 @@ -104,7 +104,7 @@ if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL) /* error return */ sigstk.ss_size = SIGSTKSZ; sigstk.ss_flags = 0; -if (sigaltstack(&sigstk,0) < 0) +if (sigaltstack(&sigstk, NULL) < 0) perror("sigaltstack"); .Ed An alternative approach is provided for programs with signal handlers