diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-07-08 18:51:11 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-07-08 18:51:11 +0900 |
commit | ef65806ce4dc7560d9027b951cf707e7aae4eb86 (patch) | |
tree | a0b0ab139bdc1d54710bc072ff1a02f59c69613b | |
parent | fbb462371fbb922e4387e77efb27690f8e44d8a1 (diff) | |
download | efl-ef65806ce4dc7560d9027b951cf707e7aae4eb86.tar.gz |
new animator coverity complaints - silence them
check return of read/write to make coverity happy (even though they
should never fail as it's a pipe within a process).
-rw-r--r-- | src/lib/ecore/ecore_anim.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c index 020e4267a1..feb7456e40 100644 --- a/src/lib/ecore/ecore_anim.c +++ b/src/lib/ecore/ecore_anim.c @@ -87,7 +87,10 @@ static void _tick_send(char val) { DBG("_tick_send(%i)", val); - pipe_write(timer_fd_write, &val, 1); + if (pipe_write(timer_fd_write, &val, 1) != 0) + { + ERR("Cannot write to animator control fd"); + } } static void @@ -137,7 +140,10 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) } if ((ret == 1) && (FD_ISSET(timer_fd_read, &rfds))) { - pipe_read(timer_fd_read, &tick, sizeof(tick)); + if (pipe_read(timer_fd_read, &tick, sizeof(tick)) != 0) + { + ERR("Cannot read from animator control fd"); + } DBG("tick = %i", tick); if (tick == -1) goto done; } |