raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=155a102a456e12a0d233dffd78647e59fdc7fafa

commit 155a102a456e12a0d233dffd78647e59fdc7fafa
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Jul 9 08:22:05 2015 +0900

    ecore anim - oops. coverity silence checked wrong value for read/write
    
    fix
---
 src/lib/ecore/ecore_anim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index feb7456..434c73c 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -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");
                }

-- 


Reply via email to