summaryrefslogtreecommitdiff
path: root/legacy/ecore
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-05-27 05:33:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-05-27 05:33:32 +0000
commitfb0dc2ccd684d8c2f7c45b0485fc7d1cdc09bc41 (patch)
treeac37b45ac4074dc7252bcd1f2cca0e47f168c522 /legacy/ecore
parent86fbabac526f3462f11c6281608e3e309ff53663 (diff)
oopsiedaisy!
thanks rbdpgn! ppc ipc issue fixed now! :) SVN revision: 10370
Diffstat (limited to 'legacy/ecore')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c56
1 files changed, 38 insertions, 18 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
index e9470167ac..b3d10ca052 100644
--- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
+++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
@@ -746,23 +746,33 @@ _ecore_ipc_event_server_del(void *data, int ev_type, void *ev)
746 md = ((head >> (4 * _n)) & 0xf); \ 746 md = ((head >> (4 * _n)) & 0xf); \
747 if (md >= DLT_SET) \ 747 if (md >= DLT_SET) \
748 { \ 748 { \
749 dd[0] = *(cl->buf + offset + s + 0); \ 749 unsigned int v; \
750 dd[1] = *(cl->buf + offset + s + 1); \ 750 unsigned char *dv; \
751 dd[2] = *(cl->buf + offset + s + 2); \ 751 dv = (unsigned char *)&v; \
752 dd[3] = *(cl->buf + offset + s + 3); \ 752 dv[0] = *(cl->buf + offset + s + 0); \
753 d = ntohl(d); \ 753 dv[1] = *(cl->buf + offset + s + 1); \
754 dv[2] = *(cl->buf + offset + s + 2); \
755 dv[3] = *(cl->buf + offset + s + 3); \
756 d = (int)ntohl(d); \
754 s += 4; \ 757 s += 4; \
755 } \ 758 } \
756 else if (md >= DLT_ADD16) \ 759 else if (md >= DLT_ADD16) \
757 { \ 760 { \
758 dd[0] = *(cl->buf + offset + s + 0); \ 761 unsigned short v; \
759 dd[1] = *(cl->buf + offset + s + 1); \ 762 unsigned char *dv; \
760 d = ntohs(d); \ 763 dv = (unsigned char *)&v; \
764 dv[0] = *(cl->buf + offset + s + 0); \
765 dv[1] = *(cl->buf + offset + s + 1); \
766 d = (int)ntohs(v); \
761 s += 2; \ 767 s += 2; \
762 } \ 768 } \
763 else if (md >= DLT_ADD8) \ 769 else if (md >= DLT_ADD8) \
764 { \ 770 { \
765 d = *(cl->buf + offset + s + 0); \ 771 unsigned char v; \
772 unsigned char *dv; \
773 dv = (unsigned char *)&v; \
774 dv[0] = *(cl->buf + offset + s + 0); \
775 d = (int)v; \
766 s += 1; \ 776 s += 1; \
767 } \ 777 } \
768 msg._member = _ecore_ipc_ddlt_int(d, cl->prev.i._member, md); 778 msg._member = _ecore_ipc_ddlt_int(d, cl->prev.i._member, md);
@@ -909,23 +919,33 @@ _ecore_ipc_event_client_data(void *data, int ev_type, void *ev)
909 md = ((head >> (4 * _n)) & 0xf); \ 919 md = ((head >> (4 * _n)) & 0xf); \
910 if (md >= DLT_SET) \ 920 if (md >= DLT_SET) \
911 { \ 921 { \
912 dd[0] = *(svr->buf + offset + s + 0); \ 922 unsigned int v; \
913 dd[1] = *(svr->buf + offset + s + 1); \ 923 unsigned char *dv; \
914 dd[2] = *(svr->buf + offset + s + 2); \ 924 dv = (unsigned char *)&v; \
915 dd[3] = *(svr->buf + offset + s + 3); \ 925 dv[0] = *(svr->buf + offset + s + 0); \
916 d = ntohl(d); \ 926 dv[1] = *(svr->buf + offset + s + 1); \
927 dv[2] = *(svr->buf + offset + s + 2); \
928 dv[3] = *(svr->buf + offset + s + 3); \
929 d = (int)ntohl(d); \
917 s += 4; \ 930 s += 4; \
918 } \ 931 } \
919 else if (md >= DLT_ADD16) \ 932 else if (md >= DLT_ADD16) \
920 { \ 933 { \
921 dd[0] = *(svr->buf + offset + s + 0); \ 934 unsigned short v; \
922 dd[1] = *(svr->buf + offset + s + 1); \ 935 unsigned char *dv; \
923 d = ntohs(d); \ 936 dv = (unsigned char *)&v; \
937 dv[0] = *(svr->buf + offset + s + 0); \
938 dv[1] = *(svr->buf + offset + s + 1); \
939 d = (int)ntohs(v); \
924 s += 2; \ 940 s += 2; \
925 } \ 941 } \
926 else if (md >= DLT_ADD8) \ 942 else if (md >= DLT_ADD8) \
927 { \ 943 { \
928 d = *(svr->buf + offset + s + 0); \ 944 unsigned char v; \
945 unsigned char *dv; \
946 dv = (unsigned char *)&v; \
947 dv[0] = *(svr->buf + offset + s + 0); \
948 d = (int)v; \
929 s += 1; \ 949 s += 1; \
930 } \ 950 } \
931 msg._member = _ecore_ipc_ddlt_int(d, svr->prev.i._member, md); 951 msg._member = _ecore_ipc_ddlt_int(d, svr->prev.i._member, md);