From 052a89a833a7ee578f0080a38621d11121614e2f Mon Sep 17 00:00:00 2001 From: dinoex Date: Sat, 7 Oct 2006 19:51:31 +0000 Subject: - fix build with gcc41 --- graphics/xv/files/patch-xvimage.c | 24 ++++++++++++++++++++++++ net-p2p/ed2k/files/patch-ed2k.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 graphics/xv/files/patch-xvimage.c diff --git a/graphics/xv/files/patch-xvimage.c b/graphics/xv/files/patch-xvimage.c new file mode 100644 index 000000000000..32bb035156f3 --- /dev/null +++ b/graphics/xv/files/patch-xvimage.c @@ -0,0 +1,24 @@ +--- xvimage.c.orig Sat Oct 7 21:38:26 2006 ++++ xvimage.c Sat Oct 7 21:44:00 2006 +@@ -2003,8 +2003,8 @@ + if (dithpic) xcol = ((*pp) ? white : black) & 0xffff; + else xcol = xcolors[*pp] & 0xffff; + +- *((unsigned char *)ip)++ = (xcol>>8) & 0xff; +- *((unsigned char *)ip)++ = (xcol) & 0xff; ++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff; ++ *(((unsigned char *)ip)++) = (xcol) & 0xff; + } + } + else { /* LSBFirst */ +@@ -2014,8 +2014,8 @@ + if (dithpic) xcol = ((*pp) ? white : black) & 0xffff; + else xcol = xcolors[*pp]; + +- *((unsigned char *)ip)++ = (xcol) & 0xff; +- *((unsigned char *)ip)++ = (xcol>>8) & 0xff; ++ *(((unsigned char *)ip)++) = (xcol) & 0xff; ++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff; + } + } + } diff --git a/net-p2p/ed2k/files/patch-ed2k.c b/net-p2p/ed2k/files/patch-ed2k.c index 3c6191f5b925..ce2a6d085069 100644 --- a/net-p2p/ed2k/files/patch-ed2k.c +++ b/net-p2p/ed2k/files/patch-ed2k.c @@ -54,7 +54,7 @@ int dsize = sizeof(md4_t); while (dsize--) { - unsigned char d = *((unsigned char *)digest)++; -+ unsigned char d = (*((unsigned char *)digest))++; ++ unsigned char d = *(((unsigned char *)digest)++); *(str++) = hdigit(d >> 4 ); *(str++) = hdigit(d & 0xf); } -- cgit