Skip to content

Commit 28e5d30

Browse files
committed
ed: Fix function pointer cast lint error
1 parent d6acc65 commit 28e5d30

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

editors/ed_main.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ fn setup_signals() {
5555
libc::signal(libc::SIGQUIT, libc::SIG_IGN);
5656

5757
// SIGINT: Set flag to be checked in main loop
58-
libc::signal(libc::SIGINT, sigint_handler as libc::sighandler_t);
58+
libc::signal(
59+
libc::SIGINT,
60+
sigint_handler as *const () as libc::sighandler_t,
61+
);
5962

6063
// SIGHUP: Set flag to save buffer and exit
61-
libc::signal(libc::SIGHUP, sighup_handler as libc::sighandler_t);
64+
libc::signal(
65+
libc::SIGHUP,
66+
sighup_handler as *const () as libc::sighandler_t,
67+
);
6268
}
6369
}
6470

0 commit comments

Comments
 (0)