A string is a char* and the data from ipc is unsigned char*. This cast

removes a lot of compiler warnings.


SVN revision: 14729
This commit is contained in:
sebastid 2005-05-12 13:52:44 +00:00 committed by sebastid
parent ed9d00eaf5
commit 5321d3758e
1 changed files with 2 additions and 2 deletions

View File

@ -116,13 +116,13 @@ extern "C" {
{ \ { \
if (ptr < ((unsigned char *)d + s)) \ if (ptr < ((unsigned char *)d + s)) \
{ \ { \
p->v = ptr; \ p->v = (char *)ptr; \
ptr += strlen(p->v) + 1; \ ptr += strlen(p->v) + 1; \
} \ } \
} }
#define ECORE_IPC_PUTS(v, l)\ #define ECORE_IPC_PUTS(v, l)\
{ \ { \
strcpy(ptr, p->v); \ strcpy((char *)ptr, p->v); \
ptr += l + 1; \ ptr += l + 1; \
} }