diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /plugins/bbdb | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2 gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/bbdb')
-rw-r--r-- | plugins/bbdb/bbdb.c | 2 | ||||
-rw-r--r-- | plugins/bbdb/gaimbuddies.c | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c index c78bdca1fd..e0d3ca3e91 100644 --- a/plugins/bbdb/bbdb.c +++ b/plugins/bbdb/bbdb.c @@ -93,7 +93,7 @@ e_plugin_lib_enable (EPlugin *ep, if (enable) { gint interval; - d(fprintf (stderr, "BBDB spinning up...\n")); + d (fprintf (stderr, "BBDB spinning up...\n")); g_idle_add (bbdb_timeout, ep); diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c index 9d01ccd6cb..99352787e9 100644 --- a/plugins/bbdb/gaimbuddies.c +++ b/plugins/bbdb/gaimbuddies.c @@ -125,7 +125,7 @@ bbdb_sync_buddy_list_check (void) /* Reprocess the buddy list if it's been updated. */ last_sync_str = g_settings_get_string (settings, CONF_KEY_GAIM_LAST_SYNC_TIME); - if (last_sync_str == NULL || !strcmp ((const gchar *)last_sync_str, "")) + if (last_sync_str == NULL || !strcmp ((const gchar *) last_sync_str, "")) last_sync_time = (time_t) 0; else last_sync_time = (time_t) g_ascii_strtoull (last_sync_str, NULL, 10); @@ -462,7 +462,7 @@ get_all_blocked (xmlNodePtr node, if (child->children) get_all_blocked (child, blocked); - if (!strcmp ((const gchar *)child->name, "block")) { + if (!strcmp ((const gchar *) child->name, "block")) { gchar *name = get_node_text (child); if (name) @@ -490,14 +490,14 @@ bbdb_get_gaim_buddy_list (void) } root = xmlDocGetRootElement (buddy_xml); - if (strcmp ((const gchar *)root->name, "purple")) { + if (strcmp ((const gchar *) root->name, "purple")) { fprintf (stderr, "bbdb: Could not parse Pidgin buddy list.\n"); xmlFreeDoc (buddy_xml); return NULL; } for (child = root->children; child != NULL; child = child->next) { - if (!strcmp ((const gchar *)child->name, "privacy")) { + if (!strcmp ((const gchar *) child->name, "privacy")) { get_all_blocked (child, &blocked); break; } @@ -505,7 +505,7 @@ bbdb_get_gaim_buddy_list (void) blist = NULL; for (child = root->children; child != NULL; child = child->next) { - if (!strcmp ((const gchar *)child->name, "blist")) { + if (!strcmp ((const gchar *) child->name, "blist")) { blist = child; break; } @@ -519,7 +519,7 @@ bbdb_get_gaim_buddy_list (void) } for (child = blist->children; child != NULL; child = child->next) { - if (!strcmp ((const gchar *)child->name, "group")) + if (!strcmp ((const gchar *) child->name, "group")) parse_buddy_group (child, &buddies, blocked); } @@ -555,7 +555,7 @@ static gchar * get_node_text (xmlNodePtr node) { if (node->children == NULL || node->children->content == NULL || - strcmp ((gchar *)node->children->name, "text")) + strcmp ((gchar *) node->children->name, "text")) return NULL; return g_strdup ((gchar *) node->children->content); @@ -589,7 +589,7 @@ parse_contact (xmlNodePtr contact, gboolean is_blocked = FALSE; for (child = contact->children; child != NULL; child = child->next) { - if (!strcmp ((const gchar *)child->name, "buddy")) { + if (!strcmp ((const gchar *) child->name, "buddy")) { buddy = child; break; } @@ -607,22 +607,22 @@ parse_contact (xmlNodePtr contact, gb->proto = e_xml_get_string_prop_by_name (buddy, (const guchar *)"proto"); for (child = buddy->children; child != NULL && !is_blocked; child = child->next) { - if (!strcmp ((const gchar *)child->name, "setting")) { + if (!strcmp ((const gchar *) child->name, "setting")) { gchar *setting_type; setting_type = e_xml_get_string_prop_by_name ( child, (const guchar *)"name"); - if (!strcmp ((const gchar *)setting_type, "buddy_icon")) + if (!strcmp ((const gchar *) setting_type, "buddy_icon")) gb->icon = get_buddy_icon_from_setting (child); g_free (setting_type); - } else if (!strcmp ((const gchar *)child->name, "name")) { + } else if (!strcmp ((const gchar *) child->name, "name")) { gb->account_name = get_node_text (child); is_blocked = g_slist_find_custom ( blocked, gb->account_name, (GCompareFunc) strcmp) != NULL; - } else if (!strcmp ((const gchar *)child->name, "alias")) + } else if (!strcmp ((const gchar *) child->name, "alias")) gb->alias = get_node_text (child); } @@ -641,7 +641,7 @@ parse_buddy_group (xmlNodePtr group, xmlNodePtr child; for (child = group->children; child != NULL; child = child->next) { - if (strcmp ((const gchar *)child->name, "contact")) + if (strcmp ((const gchar *) child->name, "contact")) continue; parse_contact (child, buddies, blocked); |