raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fd139068e18646730ad5d76bc7974ca1a39d9bad

commit fd139068e18646730ad5d76bc7974ca1a39d9bad
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Feb 12 17:59:17 2017 +0900

    efm - fix nuisance warning about enlightenment
---
 src/bin/e_fm_op.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c
index 229e61a..0eba2ee 100644
--- a/src/bin/e_fm_op.c
+++ b/src/bin/e_fm_op.c
@@ -557,7 +557,7 @@ _e_fm_op_stdin_data(void *data EINA_UNUSED, 
Ecore_Fd_Handler *fd_handler)
              begin = buf;
 
              /* Check magic. */
-             if (*((int *)buf) != E_FM_OP_MAGIC)
+             if (*((int *)(void *)buf) != E_FM_OP_MAGIC)
                {
                   E_FM_OP_DEBUG("Error while reading from STDIN: magic is not 
correct!\n");
                   break;
@@ -975,9 +975,9 @@ _e_fm_op_send_error(E_Fm_Op_Task *task, E_Fm_Op_Type type, 
const char *fmt, ...)
         vsnprintf(str, READBUFSIZE - 3 * sizeof(int), fmt, ap);
         len = strlen(str);
 
-        *((int *)buf) = E_FM_OP_MAGIC;
-        *((int *)(buf + sizeof(int))) = type;
-        *((int *)(buf + (2 * sizeof(int)))) = len + 1;
+        *((int *)(void *)buf) = E_FM_OP_MAGIC;
+        *((int *)(void *)(buf + sizeof(int))) = type;
+        *((int *)(void *)(buf + (2 * sizeof(int)))) = len + 1;
 
         if (write(STDOUT_FILENO, buf, (3 * sizeof(int)) + len + 1) < 0)
           perror("write");

-- 


Reply via email to