Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing argument for sigchld handler #372

Merged

Conversation

justin-stephenson
Copy link
Collaborator

rec.c: In function 'tlog_rec_transfer':
rec.c:877:19: error: assignment to '__sighandler_t' {aka 'void ()(int)'} from incompatible pointer type 'void ()(void)' [-Wincompatible-pointer-types]
877 | sa.sa_handler = tlog_rec_sigchld_handler;
| ^
rec.c:81:1: note: 'tlog_rec_sigchld_handler' declared here
81 | tlog_rec_sigchld_handler()
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from rec.c:45:
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make[4]: *** [Makefile:734: rec.lo] Error 1

rec.c: In function 'tlog_rec_transfer':
rec.c:877:19: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  877 |     sa.sa_handler = tlog_rec_sigchld_handler;
      |                   ^
rec.c:81:1: note: 'tlog_rec_sigchld_handler' declared here
   81 | tlog_rec_sigchld_handler()
      | ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from rec.c:45:
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make[4]: *** [Makefile:734: rec.lo] Error 1
@justin-stephenson justin-stephenson merged commit de6cd01 into Scribery:main Jan 23, 2025
0 of 2 checks passed
@justin-stephenson justin-stephenson deleted the update_sigchld_handler branch January 23, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant