From da131894891d58213745cc9b852a1070b3a9d4fc Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 13 Dec 2001 20:58:30 +0000 Subject: cast the key argument to g_hash_table_insert to a gpointer to avoid compiler warnings svn path=/trunk/; revision=15023 --- camel/camel-object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/camel-object.c b/camel/camel-object.c index 776d22e038..b10edf82a4 100644 --- a/camel/camel-object.c +++ b/camel/camel-object.c @@ -210,7 +210,7 @@ camel_type_init (void) GINT_TO_POINTER (CAMEL_INVALID_TYPE), NULL); g_hash_table_insert (ctype_to_typeinfo, GINT_TO_POINTER (camel_object_type), obj_info); - g_hash_table_insert (name_to_typeinfo, obj_info->name, obj_info); + g_hash_table_insert (name_to_typeinfo, (gpointer) obj_info->name, obj_info); /* Sigh. Ugly */ make_global_classfuncs (obj_info); @@ -307,7 +307,7 @@ camel_type_register (CamelType parent, const gchar * name, g_hash_table_insert (ctype_to_typeinfo, GINT_TO_POINTER (obj_info->self), obj_info); - g_hash_table_insert (name_to_typeinfo, obj_info->name, obj_info); + g_hash_table_insert (name_to_typeinfo, (gpointer) obj_info->name, obj_info); /* Sigh. Ugly. */ make_global_classfuncs (obj_info); -- cgit v1.2.3