From fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 27 May 2009 11:13:25 -0400 Subject: Prefer GLib basic types over C types. --- mail/em-format-hook.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mail/em-format-hook.c') diff --git a/mail/em-format-hook.c b/mail/em-format-hook.c index 9fec654ae5..ad7cbd7144 100644 --- a/mail/em-format-hook.c +++ b/mail/em-format-hook.c @@ -52,7 +52,7 @@ static GHashTable *emfh_types; */ -static void *emfh_parent_class; +static gpointer emfh_parent_class; #define emfh ((EMFormatHook *)eph) #define d(x) @@ -141,7 +141,7 @@ emfh_construct_group(EPluginHook *eph, xmlNodePtr root) node = root->children; while (node) { - if (0 == strcmp((char *)node->name, "item")) { + if (0 == strcmp((gchar *)node->name, "item")) { struct _EMFormatHookItem *item; item = emfh_construct_item(eph, group, node); @@ -169,7 +169,7 @@ emfh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) node = root->children; while (node) { - if (strcmp((char *)node->name, "group") == 0) { + if (strcmp((gchar *)node->name, "group") == 0) { struct _EMFormatHookGroup *group; group = emfh_construct_group(eph, node); @@ -203,7 +203,7 @@ emfh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) } static void -emfh_enable(EPluginHook *eph, int state) +emfh_enable(EPluginHook *eph, gint state) { GSList *g, *l; EMFormatClass *klass; @@ -275,5 +275,5 @@ void em_format_hook_register_type(GType type) d(printf("registering formatter type '%s'\n", g_type_name(type))); klass = g_type_class_ref(type); - g_hash_table_insert(emfh_types, (void *)g_type_name(type), klass); + g_hash_table_insert(emfh_types, (gpointer)g_type_name(type), klass); } -- cgit v1.2.3