diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 22:02:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-22 05:56:06 +0800 |
commit | cb97c2dc8fd97b381af048f206333d5e557892ae (patch) | |
tree | c2901380e607a3b439abb1bed165344ba8f4fc83 /capplet/settings | |
parent | 64fa8ad9c0851e2d5c1e90ac2e75af8d455d9fea (diff) | |
download | gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.gz gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.bz2 gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.lz gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.xz gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.zst gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'capplet/settings')
-rw-r--r-- | capplet/settings/mail-guess-servers.c | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c index 2d9197dc0c..307aeeec1c 100644 --- a/capplet/settings/mail-guess-servers.c +++ b/capplet/settings/mail-guess-servers.c @@ -113,23 +113,30 @@ get_url (SoupSession *session, const gchar *url) } static void -handle_incoming (xmlNodePtr head, EmailProvider *provider) +handle_incoming (xmlNodePtr head, + EmailProvider *provider) { xmlNodePtr node = head->children; - provider->recv_type = xml_to_gchar(xmlGetProp(head, (xmlChar *) "type"), provider); + provider->recv_type = xml_to_gchar ( + xmlGetProp (head, (xmlChar *) "type"), provider); - while (node) { + while (node != NULL) { if (strcmp ((gchar *)node->name, "hostname") == 0) { - provider->recv_hostname = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->recv_hostname = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "port") == 0) { - provider->recv_port = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->recv_port = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "socketType") == 0) { - provider->recv_socket_type = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->recv_socket_type = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "username") == 0) { - provider->recv_username = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->recv_username = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "authentication") == 0) { - provider->recv_auth = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->recv_auth = xml_to_gchar ( + xmlNodeGetContent (node), provider); } node = node->next; @@ -137,23 +144,30 @@ handle_incoming (xmlNodePtr head, EmailProvider *provider) } static void -handle_outgoing (xmlNodePtr head, EmailProvider *provider) +handle_outgoing (xmlNodePtr head, + EmailProvider *provider) { xmlNodePtr node = head->children; - provider->send_type = xml_to_gchar(xmlGetProp(head, (xmlChar *) "type"), provider); + provider->send_type = xml_to_gchar ( + xmlGetProp (head, (xmlChar *) "type"), provider); - while (node) { + while (node != NULL) { if (strcmp ((gchar *)node->name, "hostname") == 0) { - provider->send_hostname = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->send_hostname = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "port") == 0) { - provider->send_port = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->send_port = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "socketType") == 0) { - provider->send_socket_type = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->send_socket_type = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "username") == 0) { - provider->send_username = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->send_username = xml_to_gchar ( + xmlNodeGetContent (node), provider); } else if (strcmp ((gchar *)node->name, "authentication") == 0) { - provider->send_auth = xml_to_gchar (xmlNodeGetContent (node), provider); + provider->send_auth = xml_to_gchar ( + xmlNodeGetContent (node), provider); } node = node->next; |