CVS: rdesktop bitmap.c,1.22,1.23 xwin.c,1.166,1.167
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18746
Modified Files:
bitmap.c xwin.c
Log Message:
fix compiler warning/error "a cast does not yield a lvalue"
Index: bitmap.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/bitmap.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** bitmap.c 7 May 2004 04:57:39 -0000 1.22
--- bitmap.c 11 May 2004 07:34:03 -0000 1.23
***************
*** 39,43 ****
#endif /* L_ENDIAN */
#else
! #define CVAL2(p, v) v = (*(((uint16*)p)++));
#endif /* NEED_ALIGN */
--- 39,43 ----
#endif /* L_ENDIAN */
#else
! #define CVAL2(p, v) { v = (*((uint16*)p)); p += 2; }
#endif /* NEED_ALIGN */
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -C2 -d -r1.166 -r1.167
*** xwin.c 6 May 2004 08:17:47 -0000 1.166
--- xwin.c 11 May 2004 07:34:03 -0000 1.167
***************
*** 253,257 ****
if (g_arch_match)
! REPEAT(*(((uint16 *) out)++) = g_colmap[*(data++)];
)
else if (g_xserver_be)
--- 253,257 ----
if (g_arch_match)
! REPEAT(*((uint16*)out) = g_colmap[*(data++)]; out += 2;
)
else if (g_xserver_be)
***************
*** 309,313 ****
if (g_arch_match)
! REPEAT(*(((uint32 *) out)++) = g_colmap[*(data++)];
)
else if (g_xserver_be)
--- 309,313 ----
if (g_arch_match)
! REPEAT(*((uint32 *)out) = g_colmap[*(data++)]; out += 4;
)
else if (g_xserver_be)
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3