telepathy-gabble: don't use for loop variable declarations
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Tue Jun 3 04:39:17 PDT 2014
Module: telepathy-gabble
Branch: master
Commit: 4ef6cf25d315b1d4aee8752e10bab46691702db1
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=4ef6cf25d315b1d4aee8752e10bab46691702db1
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Mon Jun 2 16:06:11 2014 +0200
don't use for loop variable declarations
---
src/addressing-util.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/addressing-util.c b/src/addressing-util.c
index 049c566..cb26621 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);
More information about the telepathy-commits
mailing list