Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_ipc
Modified Files:
Ecore_Ipc.h
Log Message:
A string is a char* and the data from ipc is unsigned char*. This cast
removes a lot of compiler warnings.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_ipc/Ecore_Ipc.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Ecore_Ipc.h 29 Apr 2005 04:58:55 -0000 1.9
+++ Ecore_Ipc.h 12 May 2005 13:52:44 -0000 1.10
@@ -116,13 +116,13 @@
{ \
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; \
}
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs