[gnome-online-accounts] ewsclient: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] ewsclient: Style fixes
- Date: Mon, 9 Jan 2017 14:00:20 +0000 (UTC)
commit 75b3f9b60a4a275ea7dcbfab87bf86671678a11d
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jan 9 14:32:52 2017 +0100
ewsclient: Style fixes
Don't use a separate line to initialize variables.
src/goabackend/goaewsclient.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index 63026d1..7070d5d 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -169,11 +169,8 @@ ews_client_autodiscover_cancelled_cb (GCancellable *cancellable, gpointer user_d
static gboolean
ews_client_autodiscover_parse_protocol (xmlNode *node)
{
- gboolean as_url;
- gboolean oab_url;
-
- as_url = FALSE;
- oab_url = FALSE;
+ gboolean as_url = FALSE;
+ gboolean oab_url = FALSE;
for (node = node->children; node; node = node->next)
{
@@ -192,17 +189,15 @@ ews_client_autodiscover_parse_protocol (xmlNode *node)
static void
ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpointer user_data)
{
- GError *error;
+ GError *error = NULL;
AutodiscoverData *data = user_data;
- gboolean op_res;
+ gboolean op_res = FALSE;
guint status;
gint idx;
gsize size;
xmlDoc *doc;
xmlNode *node;
- error = NULL;
- op_res = FALSE;
size = sizeof (data->msgs) / sizeof (data->msgs[0]);
for (idx = 0; idx < size; idx++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]