From 8a186c3588d3598857c36e2122fa68d01eba30fd Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 8 May 2011 13:24:42 -0400 Subject: Coding style cleanups. --- plugins/bbdb/bbdb.c | 8 ++++---- plugins/bbdb/gaimbuddies.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/bbdb') diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c index 545fd6842d..bfb63c5505 100644 --- a/plugins/bbdb/bbdb.c +++ b/plugins/bbdb/bbdb.c @@ -197,7 +197,7 @@ bbdb_do_in_thread (gpointer data) if (!book || !bbdb_open_ebook (book)) { G_LOCK (todo); - g_slist_foreach (todo, (GFunc)free_todo_struct, NULL); + g_slist_foreach (todo, (GFunc) free_todo_struct, NULL); g_slist_free (todo); todo = NULL; @@ -357,7 +357,7 @@ bbdb_do_it (EBook *book, const gchar *name, const gchar *email) e_book_query_unref (query); if (contacts != NULL || !status) { for (l = contacts; l != NULL; l = l->next) - g_object_unref ((GObject *)l->data); + g_object_unref ((GObject *) l->data); g_list_free (contacts); g_free (temp_name); @@ -391,7 +391,7 @@ bbdb_do_it (EBook *book, const gchar *name, const gchar *email) this. */ if (!status || contacts->next != NULL) { for (l = contacts; l != NULL; l = l->next) - g_object_unref ((GObject *)l->data); + g_object_unref ((GObject *) l->data); g_list_free (contacts); g_free (temp_name); return; @@ -405,7 +405,7 @@ bbdb_do_it (EBook *book, const gchar *name, const gchar *email) } for (l = contacts; l != NULL; l = l->next) - g_object_unref ((GObject *)l->data); + g_object_unref ((GObject *) l->data); g_list_free (contacts); g_free (temp_name); diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c index 62fc89d9ec..3e6f344ed0 100644 --- a/plugins/bbdb/gaimbuddies.c +++ b/plugins/bbdb/gaimbuddies.c @@ -385,7 +385,7 @@ bbdb_merge_buddy_to_contact (EBook *book, GaimBuddy *b, EContact *c) return dirty; } - photo->data.inlined.data = (guchar *)contents; + photo->data.inlined.data = (guchar *) contents; e_contact_set (c, E_CONTACT_PHOTO, (gpointer) photo); dirty = TRUE; } @@ -492,7 +492,7 @@ bbdb_get_gaim_buddy_list (void) xmlFreeDoc (buddy_xml); - g_slist_foreach (blocked, (GFunc)g_free, NULL); + g_slist_foreach (blocked, (GFunc) g_free, NULL); g_slist_free (blocked); return buddies; @@ -514,7 +514,7 @@ free_gaim_body (GaimBuddy *gb) static void free_buddy_list (GList *blist) { - g_list_foreach (blist, (GFunc)free_gaim_body, NULL); + g_list_foreach (blist, (GFunc) free_gaim_body, NULL); g_list_free (blist); } @@ -525,7 +525,7 @@ get_node_text (xmlNodePtr node) strcmp ((gchar *)node->children->name, "text")) return NULL; - return g_strdup ((gchar *)node->children->content); + return g_strdup ((gchar *) node->children->content); } static gchar * -- cgit v1.2.3