ecore anim - oops. coverity silence checked wrong value for read/write
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 8 Jul 2015 23:22:05 +0000 (08:22 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 8 Jul 2015 23:22:40 +0000 (08:22 +0900)
fix

src/lib/ecore/ecore_anim.c

index feb7456..434c73c 100644 (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");
                }