From 5321d3758ec224e477d5d7934567b9c308faaca4 Mon Sep 17 00:00:00 2001 From: sebastid Date: Thu, 12 May 2005 13:52:44 +0000 Subject: [PATCH] A string is a char* and the data from ipc is unsigned char*. This cast removes a lot of compiler warnings. SVN revision: 14729 --- legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h index 6bfd51278e..b3cf05b2ee 100644 --- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h +++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h @@ -116,13 +116,13 @@ extern "C" { { \ if (ptr < ((unsigned char *)d + s)) \ { \ - p->v = ptr; \ + p->v = (char *)ptr; \ ptr += strlen(p->v) + 1; \ } \ } #define ECORE_IPC_PUTS(v, l)\ { \ - strcpy(ptr, p->v); \ + strcpy((char *)ptr, p->v); \ ptr += l + 1; \ }