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

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