Fix Ubuntu 11.10 compiler error on unchecked write() return value.

This commit is contained in:
Christopher Rienzo 2012-06-08 18:12:33 +00:00
parent 086f617442
commit 9c94ac312e
1 changed files with 3 additions and 1 deletions

View File

@ -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 */
}
}
}
}