diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index 229e61aa5..0eba2ee3e 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");