aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 22:02:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:17 +0800
commit5146ff4c535f443fe25290eb96631e91ad44c8ef (patch)
treeb8cc31419c1f297092e13eedd9a5877f4c106eda /capplet
parentea8a59a443f861af88ddb21d5dcbde1c95006203 (diff)
downloadgsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.gz
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.tar.zst
gsoc2013-evolution-5146ff4c535f443fe25290eb96631e91ad44c8ef.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-guess-servers.c46
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;