summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 17:59:17 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 17:59:17 +0900
commitfd139068e18646730ad5d76bc7974ca1a39d9bad (patch)
tree3401afc93e0be493948c1b00dfe86cf4630defdd
parentd72815747a62979e54622a76fd6c4648593df0ce (diff)
efm - fix nuisance warning about enlightenment
-rw-r--r--src/bin/e_fm_op.c8
1 files changed, 4 insertions, 4 deletions
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)
557 begin = buf; 557 begin = buf;
558 558
559 /* Check magic. */ 559 /* Check magic. */
560 if (*((int *)buf) != E_FM_OP_MAGIC) 560 if (*((int *)(void *)buf) != E_FM_OP_MAGIC)
561 { 561 {
562 E_FM_OP_DEBUG("Error while reading from STDIN: magic is not correct!\n"); 562 E_FM_OP_DEBUG("Error while reading from STDIN: magic is not correct!\n");
563 break; 563 break;
@@ -975,9 +975,9 @@ _e_fm_op_send_error(E_Fm_Op_Task *task, E_Fm_Op_Type type, const char *fmt, ...)
975 vsnprintf(str, READBUFSIZE - 3 * sizeof(int), fmt, ap); 975 vsnprintf(str, READBUFSIZE - 3 * sizeof(int), fmt, ap);
976 len = strlen(str); 976 len = strlen(str);
977 977
978 *((int *)buf) = E_FM_OP_MAGIC; 978 *((int *)(void *)buf) = E_FM_OP_MAGIC;
979 *((int *)(buf + sizeof(int))) = type; 979 *((int *)(void *)(buf + sizeof(int))) = type;
980 *((int *)(buf + (2 * sizeof(int)))) = len + 1; 980 *((int *)(void *)(buf + (2 * sizeof(int)))) = len + 1;
981 981
982 if (write(STDOUT_FILENO, buf, (3 * sizeof(int)) + len + 1) < 0) 982 if (write(STDOUT_FILENO, buf, (3 * sizeof(int)) + len + 1) < 0)
983 perror("write"); 983 perror("write");