[empathy/gnome-3-4] mcp-account-manager-goa: fix shadow variable warnings
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-4] mcp-account-manager-goa: fix shadow variable warnings
- Date: Mon, 2 Apr 2012 09:08:04 +0000 (UTC)
commit fdf86339c44094f4e115283312dcd3f209a9f72b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Apr 2 10:51:43 2012 +0200
mcp-account-manager-goa: fix shadow variable warnings
goa-mc-plugin/mcp-account-manager-goa.c | 34 +++++++++++++++---------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 5fd014e..bccb394 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -354,10 +354,10 @@ mcp_account_manager_goa_list (const McpAccountStorage *self,
static void
get_enabled (const McpAccountStorage *self,
const McpAccountManager *am,
- const gchar *acct,
+ const gchar *acc,
GoaObject *object)
{
- mcp_account_manager_set_value (am, acct, "Enabled",
+ mcp_account_manager_set_value (am, acc, "Enabled",
goa_object_peek_chat (object) != NULL ? "true" : "false");
}
@@ -365,16 +365,16 @@ get_enabled (const McpAccountStorage *self,
static gboolean
mcp_account_manager_goa_get (const McpAccountStorage *self,
const McpAccountManager *am,
- const gchar *acct,
+ const gchar *acc,
const gchar *key)
{
McpAccountManagerGoaPrivate *priv = GET_PRIVATE (self);
GoaObject *object;
GoaAccount *account;
- DEBUG ("%s: %s, %s", G_STRFUNC, acct, key);
+ DEBUG ("%s: %s, %s", G_STRFUNC, acc, key);
- object = g_hash_table_lookup (priv->accounts, acct);
+ object = g_hash_table_lookup (priv->accounts, acc);
if (object == NULL)
return FALSE;
@@ -389,28 +389,28 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
/* load all keys */
GHashTable *params = get_tp_parameters (account);
GHashTableIter iter;
- gpointer key, value;
+ gpointer k, value;
GStrv keys;
guint i;
gssize nkeys = 0;
/* Properties from GOA */
g_hash_table_iter_init (&iter, params);
- while (g_hash_table_iter_next (&iter, &key, &value))
- mcp_account_manager_set_value (am, acct, key, value);
+ while (g_hash_table_iter_next (&iter, &k, &value))
+ mcp_account_manager_set_value (am, acc, k, value);
g_hash_table_unref (params);
/* Stored properties */
- keys = g_key_file_get_keys (priv->store, acct, &nkeys, NULL);
+ keys = g_key_file_get_keys (priv->store, acc, &nkeys, NULL);
for (i = 0; i < nkeys; i++)
{
- gchar *v = g_key_file_get_value (priv->store, acct, keys[i], NULL);
+ gchar *v = g_key_file_get_value (priv->store, acc, keys[i], NULL);
if (v != NULL)
{
- mcp_account_manager_set_value (am, acct, keys[i], v);
+ mcp_account_manager_set_value (am, acc, keys[i], v);
g_free (v);
}
}
@@ -418,11 +418,11 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
g_strfreev (keys);
/* Enabled */
- get_enabled (self, am, acct, object);
+ get_enabled (self, am, acc, object);
}
else if (!tp_strdiff (key, "Enabled"))
{
- get_enabled (self, am, acct, object);
+ get_enabled (self, am, acc, object);
}
else
{
@@ -433,11 +433,11 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
value = g_hash_table_lookup (params, key);
if (value == NULL)
- value = g_key_file_get_value (priv->store, acct, key, NULL);
+ value = g_key_file_get_value (priv->store, acc, key, NULL);
else
value = g_strdup (value);
- mcp_account_manager_set_value (am, acct, key, value);
+ mcp_account_manager_set_value (am, acc, key, value);
g_hash_table_unref (params);
g_free (value);
@@ -568,14 +568,14 @@ mcp_account_manager_goa_get_restrictions (const McpAccountStorage *self,
static void
mcp_account_manager_goa_get_identifier (const McpAccountStorage *self,
- const gchar *acct,
+ const gchar *acc,
GValue *identifier)
{
McpAccountManagerGoaPrivate *priv = GET_PRIVATE (self);
GoaObject *object;
GoaAccount *account;
- object = g_hash_table_lookup (priv->accounts, acct);
+ object = g_hash_table_lookup (priv->accounts, acc);
g_return_if_fail (object != NULL);
account = goa_object_peek_account (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]