summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxp
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-01-04 16:46:27 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-05 11:24:45 +0000
commit8b26d1187cd68fa9631ad3c2e73bfeb58b0b9337 (patch)
tree74ebe41ef15014c3d74a3c8f91debfb69fc66f4f /meta/recipes-graphics/xorg-lib/libxp
parent4de7aafbed1d3d6885b188f3bc61d6da5b0659a4 (diff)
downloadpoky-8b26d1187cd68fa9631ad3c2e73bfeb58b0b9337.tar.gz
libxp: fix cast error
(From OE-Core rev: 6de454e0a66e832571b23406fdc4b9c4e65073d0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxp')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch
new file mode 100644
index 0000000000..fea18cff0f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch
@@ -0,0 +1,42 @@
1This patch fixes these new errors:
2
3| XpNotifyPdm.c:234:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
4| XpNotifyPdm.c:271:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
5| XpNotifyPdm.c:286:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
6
7
8Upstream-Status: Pending
9
10Signed-off-by: Saul Wold <sgw@linux.intel.com>
11
12Index: libXp-1.0.1/src/XpNotifyPdm.c
13===================================================================
14--- libXp-1.0.1.orig/src/XpNotifyPdm.c
15+++ libXp-1.0.1/src/XpNotifyPdm.c
16@@ -231,7 +231,7 @@ XpGetPdmStartParams (
17 /*
18 * Error - cannot determine or establish a selection_display.
19 */
20- return( (Status) NULL );
21+ return( (Status) 0 );
22 }
23
24 /*
25@@ -268,7 +268,7 @@ XpGetPdmStartParams (
26 XCloseDisplay( *selection_display );
27 *selection_display = (Display *) NULL;
28 }
29- return( (Status) NULL );
30+ return( (Status) 0 );
31 }
32
33 status = XmbTextListToTextProperty( *selection_display, list, 6,
34@@ -283,7 +283,7 @@ XpGetPdmStartParams (
35 XCloseDisplay( *selection_display );
36 *selection_display = (Display *) NULL;
37 }
38- return( (Status) NULL );
39+ return( (Status) 0 );
40 }
41
42 *type = text_prop.encoding;