forked from enlightenment/efl
ecore anim - oops. coverity silence checked wrong value for read/write
fix
This commit is contained in:
parent
3317dfb4c6
commit
155a102a45
|
@ -87,7 +87,7 @@ static void
|
|||
_tick_send(char val)
|
||||
{
|
||||
DBG("_tick_send(%i)", val);
|
||||
if (pipe_write(timer_fd_write, &val, 1) != 0)
|
||||
if (pipe_write(timer_fd_write, &val, 1) != 1)
|
||||
{
|
||||
ERR("Cannot write to animator control fd");
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
|
|||
}
|
||||
if ((ret == 1) && (FD_ISSET(timer_fd_read, &rfds)))
|
||||
{
|
||||
if (pipe_read(timer_fd_read, &tick, sizeof(tick)) != 0)
|
||||
if (pipe_read(timer_fd_read, &tick, sizeof(tick)) != 1)
|
||||
{
|
||||
ERR("Cannot read from animator control fd");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue