summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-02 16:06:11 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-03 10:46:59 +0200
commit4ef6cf25d315b1d4aee8752e10bab46691702db1 (patch)
treeb376dc004e18c982fa7705137476933f2bd0f7dc
parent9f01937eaa66f21298cc55bf36751ff6569239e1 (diff)
don't use for loop variable declarations
-rw-r--r--src/addressing-util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/addressing-util.c b/src/addressing-util.c
index 049c566c6..cb26621d7 100644
--- a/src/addressing-util.c
+++ b/src/addressing-util.c
@@ -358,8 +358,9 @@ gabble_uris_for_handle (TpHandleRepoIface *contact_repo,
TpHandle contact)
{
GPtrArray *uris = g_ptr_array_new ();
+ const gchar * const *scheme;
- for (const gchar * const *scheme = addressable_uri_schemes; *scheme != NULL; scheme++)
+ for (scheme = addressable_uri_schemes; *scheme != NULL; scheme++)
{
gchar *uri = gabble_uri_for_handle (contact_repo, *scheme, contact);
@@ -379,8 +380,9 @@ gabble_vcard_addresses_for_handle (TpHandleRepoIface *contact_repo,
{
GHashTable *addresses = g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, (GDestroyNotify) g_free);
+ const gchar * const *field;
- for (const gchar * const *field = addressable_vcard_fields; *field != NULL; field++)
+ for (field = addressable_vcard_fields; *field != NULL; field++)
{
gchar *vcard_address = gabble_vcard_address_for_handle (contact_repo, *field, contact);