[empathy] mcp_account_manager_goa_get: rename 'n' to nkeys
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] mcp_account_manager_goa_get: rename 'n' to nkeys
- Date: Tue, 6 Sep 2011 05:38:51 +0000 (UTC)
commit e49885103b7bd1754511282b05a1b44c13d7289f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Sep 5 15:55:53 2011 +0200
mcp_account_manager_goa_get: rename 'n' to nkeys
goa-mc-plugin/mcp-account-manager-goa.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 7319f8c..7804f9e 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -373,7 +373,7 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
gpointer key, value;
GStrv keys;
guint i;
- gssize n;
+ gssize nkeys = 0;
/* Properties from GOA */
g_hash_table_iter_init (&iter, params);
@@ -383,12 +383,9 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
g_hash_table_destroy (params);
/* Stored properties */
- keys = g_key_file_get_keys (priv->store, acct, &n, NULL);
+ keys = g_key_file_get_keys (priv->store, acct, &nkeys, NULL);
- if (keys == NULL)
- n = 0;
-
- for (i = 0; i < n; i++)
+ for (i = 0; i < nkeys; i++)
{
gchar *v = g_key_file_get_value (priv->store, acct, keys[i], NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]