We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6acc65 commit 28e5d30Copy full SHA for 28e5d30
editors/ed_main.rs
@@ -55,10 +55,16 @@ fn setup_signals() {
55
libc::signal(libc::SIGQUIT, libc::SIG_IGN);
56
57
// SIGINT: Set flag to be checked in main loop
58
- libc::signal(libc::SIGINT, sigint_handler as libc::sighandler_t);
+ libc::signal(
59
+ libc::SIGINT,
60
+ sigint_handler as *const () as libc::sighandler_t,
61
+ );
62
63
// SIGHUP: Set flag to save buffer and exit
- libc::signal(libc::SIGHUP, sighup_handler as libc::sighandler_t);
64
65
+ libc::SIGHUP,
66
+ sighup_handler as *const () as libc::sighandler_t,
67
68
}
69
70
0 commit comments