SHA256
1
0
forked from pool/seahorse
seahorse/seahorse-fix-compiler-warning.patch

33 lines
1.1 KiB
Diff

--- ./common/seahorse-registry.c.org 2009-01-08 07:56:32.000000000 +1100
+++ ./common/seahorse-registry.c 2009-01-08 08:26:04.000000000 +1100
@@ -87,7 +87,7 @@ lookup_category_values (GHashTable *tabl
g_return_val_if_fail (category[0], NULL);
/* Get the first category */
- set = g_hash_table_lookup (table, g_quark_try_string (category));
+ set = g_hash_table_lookup (table, GUINT_TO_POINTER (g_quark_try_string (category)));
if (!set)
return NULL;
@@ -105,7 +105,7 @@ lookup_category_values (GHashTable *tabl
g_return_val_if_fail (category[0], NULL);
/* Lookup this category */
- set = g_hash_table_lookup (table, g_quark_try_string (category));
+ set = g_hash_table_lookup (table, GUINT_TO_POINTER (g_quark_try_string (category)));
/* No category, no matches */
if (!set) {
@@ -402,8 +402,8 @@ seahorse_registry_lookup_function (Seaho
pv = SEAHORSE_REGISTRY_GET_PRIVATE (registry);
va_start (cats, category);
- func = GPOINTER_TO_UINT (lookup_category_value (pv->functions, category, cats));
+ func = lookup_category_value (pv->functions, category, cats);
va_end (cats);
return func;
-}
\ No newline at end of file
+}