summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-05-12 13:52:44 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-05-12 13:52:44 +0000
commit5321d3758ec224e477d5d7934567b9c308faaca4 (patch)
treef03ef7bb4e4e51d929e0876e0129631833a4ae6e /legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
parented9d00eaf50c7be0eb3bb22406cc66d8c1b928b2 (diff)
A string is a char* and the data from ipc is unsigned char*. This cast
removes a lot of compiler warnings. SVN revision: 14729
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h4
1 files 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" {
116 { \ 116 { \
117 if (ptr < ((unsigned char *)d + s)) \ 117 if (ptr < ((unsigned char *)d + s)) \
118 { \ 118 { \
119 p->v = ptr; \ 119 p->v = (char *)ptr; \
120 ptr += strlen(p->v) + 1; \ 120 ptr += strlen(p->v) + 1; \
121 } \ 121 } \
122 } 122 }
123#define ECORE_IPC_PUTS(v, l)\ 123#define ECORE_IPC_PUTS(v, l)\
124 { \ 124 { \
125 strcpy(ptr, p->v); \ 125 strcpy((char *)ptr, p->v); \
126 ptr += l + 1; \ 126 ptr += l + 1; \
127 } 127 }
128 128