mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-10-14 02:24:02 +00:00
- one_tick() is casted to the correct type when used as a POSIX.4 signal handler
This commit is contained in:
parent
fa1060d325
commit
34875ce327
@ -435,7 +435,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
// POSIX.4 timers and real-time signals available, start 60Hz timer
|
// POSIX.4 timers and real-time signals available, start 60Hz timer
|
||||||
sigemptyset(&timer_sa.sa_mask);
|
sigemptyset(&timer_sa.sa_mask);
|
||||||
timer_sa.sa_sigaction = one_tick;
|
timer_sa.sa_sigaction = (void (*)(int, siginfo_t *, void *))one_tick;
|
||||||
timer_sa.sa_flags = SA_SIGINFO | SA_RESTART;
|
timer_sa.sa_flags = SA_SIGINFO | SA_RESTART;
|
||||||
if (sigaction(SIG_TIMER, &timer_sa, NULL) < 0) {
|
if (sigaction(SIG_TIMER, &timer_sa, NULL) < 0) {
|
||||||
sprintf(str, GetString(STR_SIG_INSTALL_ERR), "SIG_TIMER", strerror(errno));
|
sprintf(str, GetString(STR_SIG_INSTALL_ERR), "SIG_TIMER", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user