From 8fa449ada69d3ac8ab7e7bad57e966a829226b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 1 Mar 2011 14:32:18 -0500 Subject: [PATCH] Don't put const before G*List, it does not make sense --- wocky/wocky-auth-registry.c | 10 +++++----- wocky/wocky-auth-registry.h | 4 ++-- wocky/wocky-pubsub-node-protected.h | 2 +- wocky/wocky-pubsub-node.c | 6 +++--- wocky/wocky-pubsub-node.h | 2 +- wocky/wocky-utils.c | 4 ++-- wocky/wocky-utils.h | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/wocky/wocky-auth-registry.c b/wocky/wocky-auth-registry.c index 24e9d5c..c4c90b7 100644 --- a/wocky/wocky-auth-registry.c +++ b/wocky/wocky-auth-registry.c @@ -24,7 +24,7 @@ struct _WockyAuthRegistryPrivate }; static void wocky_auth_registry_start_auth_async_func (WockyAuthRegistry *self, - const GSList *mechanisms, + GSList *mechanisms, gboolean allow_plain, gboolean is_secure_channel, const gchar *username, @@ -172,7 +172,7 @@ wocky_auth_registry_new (void) } static gboolean -wocky_auth_registry_has_mechanism (const GSList *list, const gchar *mech) { +wocky_auth_registry_has_mechanism (GSList *list, const gchar *mech) { GSList *t; t = g_slist_find_custom ((GSList *) list, mech, (GCompareFunc) g_strcmp0); @@ -214,7 +214,7 @@ wocky_auth_registry_start_data_free (WockyAuthRegistryStartData *start_data) static WockyAuthHandler * wocky_auth_registry_select_handler (WockyAuthRegistry *self, - gboolean allow_plain, const GSList *mechanisms) + gboolean allow_plain, GSList *mechanisms) { WockyAuthRegistryPrivate *priv = self->priv; GSList *k; @@ -239,7 +239,7 @@ wocky_auth_registry_select_handler (WockyAuthRegistry *self, static void wocky_auth_registry_start_auth_async_func (WockyAuthRegistry *self, - const GSList *mechanisms, + GSList *mechanisms, gboolean allow_plain, gboolean is_secure_channel, const gchar *username, @@ -336,7 +336,7 @@ wocky_auth_registry_start_auth_async_func (WockyAuthRegistry *self, void wocky_auth_registry_start_auth_async (WockyAuthRegistry *self, - const GSList *mechanisms, + GSList *mechanisms, gboolean allow_plain, gboolean is_secure_channel, const gchar *username, diff --git a/wocky/wocky-auth-registry.h b/wocky/wocky-auth-registry.h index f8a1525..560baf7 100644 --- a/wocky/wocky-auth-registry.h +++ b/wocky/wocky-auth-registry.h @@ -84,7 +84,7 @@ typedef struct _WockyAuthRegistryPrivate WockyAuthRegistryPrivate; * **/ typedef void (*WockyAuthRegistryStartAuthAsyncFunc) (WockyAuthRegistry *self, - const GSList *mechanisms, + GSList *mechanisms, gboolean allow_plain, gboolean is_secure_channel, const gchar *username, @@ -195,7 +195,7 @@ GType wocky_auth_registry_get_type (void) G_GNUC_CONST; WockyAuthRegistry *wocky_auth_registry_new (void); void wocky_auth_registry_start_auth_async (WockyAuthRegistry *self, - const GSList *mechanisms, + GSList *mechanisms, gboolean allow_plain, gboolean is_secure_channel, const gchar *username, diff --git a/wocky/wocky-pubsub-node-protected.h b/wocky/wocky-pubsub-node-protected.h index 8e7f65e..d4c8a20 100644 --- a/wocky/wocky-pubsub-node-protected.h +++ b/wocky/wocky-pubsub-node-protected.h @@ -76,7 +76,7 @@ GList *wocky_pubsub_node_parse_affiliations ( WockyStanza *wocky_pubsub_node_make_modify_affiliates_stanza ( WockyPubsubNode *self, - const GList *affiliates, + GList *affiliates, WockyNode **pubsub_node, WockyNode **affiliations_node); diff --git a/wocky/wocky-pubsub-node.c b/wocky/wocky-pubsub-node.c index 5228e14..31fd0fe 100644 --- a/wocky/wocky-pubsub-node.c +++ b/wocky/wocky-pubsub-node.c @@ -898,13 +898,13 @@ wocky_pubsub_node_list_affiliates_finish ( WockyStanza * wocky_pubsub_node_make_modify_affiliates_stanza ( WockyPubsubNode *self, - const GList *affiliates, + GList *affiliates, WockyNode **pubsub_node, WockyNode **affiliations_node) { WockyStanza *stanza; WockyNode *affiliations; - const GList *l; + GList *l; stanza = pubsub_node_make_action_stanza (self, WOCKY_STANZA_SUB_TYPE_SET, WOCKY_XMPP_NS_PUBSUB_OWNER, "affiliations", NULL, @@ -967,7 +967,7 @@ wocky_pubsub_node_make_modify_affiliates_stanza ( void wocky_pubsub_node_modify_affiliates_async ( WockyPubsubNode *self, - const GList *affiliates, + GList *affiliates, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) diff --git a/wocky/wocky-pubsub-node.h b/wocky/wocky-pubsub-node.h index 894a23f..c478e8c 100644 --- a/wocky/wocky-pubsub-node.h +++ b/wocky/wocky-pubsub-node.h @@ -158,7 +158,7 @@ gboolean wocky_pubsub_node_list_affiliates_finish ( void wocky_pubsub_node_modify_affiliates_async ( WockyPubsubNode *self, - const GList *affiliates, + GList *affiliates, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); diff --git a/wocky/wocky-utils.c b/wocky/wocky-utils.c index 88f75af..cc80048 100644 --- a/wocky/wocky-utils.c +++ b/wocky/wocky-utils.c @@ -696,10 +696,10 @@ wocky_absolutize_path (const gchar *path) GList * wocky_list_deep_copy (GBoxedCopyFunc copy, - const GList *items) + GList *items) { GList *ret = NULL; - const GList *l; + GList *l; g_return_val_if_fail (copy != NULL, NULL); diff --git a/wocky/wocky-utils.h b/wocky/wocky-utils.h index d1ab0fa..4092899 100644 --- a/wocky/wocky-utils.h +++ b/wocky/wocky-utils.h @@ -64,7 +64,7 @@ const gchar *wocky_enum_to_nick (GType enum_type, gint value); gchar *wocky_absolutize_path (const gchar *path); -GList *wocky_list_deep_copy (GBoxedCopyFunc copy, const GList *items); +GList *wocky_list_deep_copy (GBoxedCopyFunc copy, GList *items); GString *wocky_g_string_dup (const GString *str); -- 1.7.4