ecore anim - oops. coverity silence checked wrong value for read/write

fix
This commit is contained in:
Carsten Haitzler 2015-07-09 08:22:05 +09:00
parent 3317dfb4c6
commit 155a102a45
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}