summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@nokia.com>2009-08-11 16:12:35 +0300
committerAlberto Mardegan <alberto.mardegan@nokia.com>2009-08-12 12:23:48 +0300
commit196d85898b4d436001e38530c25b519bab3c9467 (patch)
tree6e67477036dc0d07abe95ed0c15b529c04f0444a
parent6561d2a2899dd570ea2f1ffe22fe8aea871e1c2f (diff)
Move casting around
Conflicts:
-rw-r--r--libmcclient/mc-account-compat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmcclient/mc-account-compat.c b/libmcclient/mc-account-compat.c
index d697146e..81ed32f4 100644
--- a/libmcclient/mc-account-compat.c
+++ b/libmcclient/mc-account-compat.c
@@ -33,7 +33,7 @@
struct _McAccountCompatProps {
gchar *avatar_file;
gchar *profile;
- const gchar **secondary_vcard_fields;
+ gchar **secondary_vcard_fields;
};
static void create_props (TpProxy *proxy, GHashTable *props);
@@ -58,7 +58,7 @@ _mc_account_compat_props_free (McAccountCompatProps *props)
{
g_free (props->profile);
g_free (props->avatar_file);
- g_strfreev ((gchar **)props->secondary_vcard_fields);
+ g_strfreev (props->secondary_vcard_fields);
g_slice_free (McAccountCompatProps, props);
}
@@ -89,7 +89,7 @@ update_secondary_vcard_fields (const gchar *name, const GValue *value,
McAccount *account = MC_ACCOUNT (user_data);
McAccountCompatProps *props = account->priv->compat_props;
- g_strfreev ((gchar **)props->secondary_vcard_fields);
+ g_strfreev (props->secondary_vcard_fields);
props->secondary_vcard_fields = g_value_dup_boxed (value);
}
@@ -184,7 +184,8 @@ mc_account_compat_get_secondary_vcard_fields (McAccount *account)
g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
if (G_UNLIKELY (!account->priv->compat_props)) return NULL;
- return account->priv->compat_props->secondary_vcard_fields;
+ return (const gchar * const *)
+ account->priv->compat_props->secondary_vcard_fields;
}
/**