diff --git a/man2/sigaction.2 b/man2/sigaction.2 index 5262b81c9..3225dc990 100644 --- a/man2/sigaction.2 +++ b/man2/sigaction.2 @@ -1161,9 +1161,9 @@ handler(int signo, siginfo_t *info, void *context) { struct sigaction oldact; - if (sigaction(SIGSEGV, NULL, &oldact) != 0 || - (oldact.sa_flags & SA_UNSUPPORTED) || - !(oldact.sa_flags & SA_EXPOSE_TAGBITS)) { + if (sigaction(SIGSEGV, NULL, &oldact) == \-1 || + (oldact.sa_flags & SA_UNSUPPORTED) || + !(oldact.sa_flags & SA_EXPOSE_TAGBITS)) { _exit(EXIT_FAILURE); } _exit(EXIT_SUCCESS); @@ -1172,11 +1172,11 @@ handler(int signo, siginfo_t *info, void *context) int main(void) { - struct sigaction act = {0}; + struct sigaction act = { 0 }; act.sa_flags = SA_SIGINFO | SA_UNSUPPORTED | SA_EXPOSE_TAGBITS; act.sa_sigaction = &handler; - if (sigaction(SIGSEGV, &act, NULL) != 0) { + if (sigaction(SIGSEGV, &act, NULL) == \-1) { perror("sigaction"); exit(EXIT_FAILURE); }