mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +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
|
||||
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;
|
||||
if (sigaction(SIG_TIMER, &timer_sa, NULL) < 0) {
|
||||
sprintf(str, GetString(STR_SIG_INSTALL_ERR), "SIG_TIMER", strerror(errno));
|
||||
|
Loading…
x
Reference in New Issue
Block a user