Use NULL instead of 0 for pointer in example.

MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2010-08-29 16:38:08 +00:00
parent 3b8199dbfc
commit da881cad07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211966

View File

@ -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