aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-10-08 03:51:31 +0800
committerdinoex <dinoex@FreeBSD.org>2006-10-08 03:51:31 +0800
commit052a89a833a7ee578f0080a38621d11121614e2f (patch)
tree9c666c14a37698835595be708c5583e3f82e7b91
parenta727885cf3e63d59824b50b90781da002c9b4b15 (diff)
downloadfreebsd-ports-gnome-052a89a833a7ee578f0080a38621d11121614e2f.tar.gz
freebsd-ports-gnome-052a89a833a7ee578f0080a38621d11121614e2f.tar.zst
freebsd-ports-gnome-052a89a833a7ee578f0080a38621d11121614e2f.zip
- fix build with gcc41
-rw-r--r--graphics/xv/files/patch-xvimage.c24
-rw-r--r--net-p2p/ed2k/files/patch-ed2k.c2
2 files changed, 25 insertions, 1 deletions
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);
}