summaryrefslogtreecommitdiff
path: root/xfconfd
diff options
context:
space:
mode:
authorStephan Arts <stephan@xfce.org>2009-02-01 21:47:21 +0000
committerStephan Arts <stephan@xfce.org>2009-02-01 21:47:21 +0000
commit9ee4a56187ed936c5abfa8b3142fd9c61104a913 (patch)
treeaf1e9f565a40968deb051763deee96afa0eb55ca /xfconfd
parent36b739b7d9529b5d33a9c1c7458a83bcdd4b898b (diff)
downloadxfconf-9ee4a56187ed936c5abfa8b3142fd9c61104a913.tar.gz
Replace GUINT_TO_POINTER and GPOINTER_TO_UINT with GSIZE_TO_POINTER and GPOINTER_TO_SIZE respectively.
Fixes segfault on AMD64 (Bug #4881) (Old svn revision: 29426)
Diffstat (limited to 'xfconfd')
-rw-r--r--xfconfd/xfconf-backend-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfconfd/xfconf-backend-factory.c b/xfconfd/xfconf-backend-factory.c
index 2c5013e..9ac3096 100644
--- a/xfconfd/xfconf-backend-factory.c
+++ b/xfconfd/xfconf-backend-factory.c
@@ -49,7 +49,7 @@ xfconf_backend_factory_ensure_backends(void)
#ifdef BUILD_XFCONF_BACKEND_PERCHANNEL_XML
g_hash_table_insert(backends, XFCONF_BACKEND_PERCHANNEL_XML_TYPE_ID,
- GUINT_TO_POINTER(XFCONF_TYPE_BACKEND_PERCHANNEL_XML));
+ GSIZE_TO_POINTER(XFCONF_TYPE_BACKEND_PERCHANNEL_XML));
#endif
}
@@ -63,7 +63,7 @@ xfconf_backend_factory_get_backend(const gchar *type,
xfconf_backend_factory_ensure_backends();
- backend_gtype = GPOINTER_TO_UINT(g_hash_table_lookup(backends, type));
+ backend_gtype = GPOINTER_TO_SIZE(g_hash_table_lookup(backends, type));
if(0 == backend_gtype) {
if(error) {
g_set_error(error, XFCONF_ERROR, 0,