mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
Fix Ubuntu 11.10 compiler error on unchecked write() return value.
This commit is contained in:
parent
086f617442
commit
9c94ac312e
@ -113,7 +113,9 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu)
|
||||
if (val >= 0 && val <= MAX_ACTIVE_TIMERS) {
|
||||
uint8_t active_id = (uint8_t)val;
|
||||
/* notify runtime thread that timer identified by active_id has ticked */
|
||||
write(globals.timer_tick_pipe[1], &active_id, 1);
|
||||
if (write(globals.timer_tick_pipe[1], &active_id, 1) == -1) {
|
||||
/* don't actually care about this error- this is only to make the compiler happy */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user