summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 21:48:59 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 21:48:59 -0700
commit776e739b1690c7de11e50e2ae2a77d98bd69a3d6 (patch)
tree477a6003632c3b687e65846e0d94c889a803258d
parentf665327b32962ed93e2b03e3e3546d3a163f8012 (diff)
downloadxorg-lib-libXp-776e739b1690c7de11e50e2ae2a77d98bd69a3d6.tar.gz
Stop trying to use NULL for Status values
Fixes gcc errors in 64-bit builds: XpNotifyPdm.c: In function 'XpGetPdmStartParams': XpNotifyPdm.c:234:10: error: cast from pointer to integer of different size XpNotifyPdm.c:271:10: error: cast from pointer to integer of different size XpNotifyPdm.c:286:10: error: cast from pointer to integer of different size Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/XpNotifyPdm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XpNotifyPdm.c b/src/XpNotifyPdm.c
index c1ceb8e..579923c 100644
--- a/src/XpNotifyPdm.c
+++ b/src/XpNotifyPdm.c
@@ -231,7 +231,7 @@ XpGetPdmStartParams (
/*
* Error - cannot determine or establish a selection_display.
*/
- return( (Status) NULL );
+ return( (Status) 0 );
}
/*
@@ -268,7 +268,7 @@ XpGetPdmStartParams (
XCloseDisplay( *selection_display );
*selection_display = (Display *) NULL;
}
- return( (Status) NULL );
+ return( (Status) 0 );
}
status = XmbTextListToTextProperty( *selection_display, list, 6,
@@ -283,7 +283,7 @@ XpGetPdmStartParams (
XCloseDisplay( *selection_display );
*selection_display = (Display *) NULL;
}
- return( (Status) NULL );
+ return( (Status) 0 );
}
*type = text_prop.encoding;