From d8ae2dde39c715884793e201b8e00d45b5c080cd Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 12 Apr 2011 15:07:52 +0200 Subject: [PATCH] tp_proxy_add_interfaces: interfaces is a 'const gchar * const *' --- telepathy-glib/proxy-subclass.h | 2 +- telepathy-glib/proxy.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telepathy-glib/proxy-subclass.h b/telepathy-glib/proxy-subclass.h index 6071d06..7399954 100644 --- a/telepathy-glib/proxy-subclass.h +++ b/telepathy-glib/proxy-subclass.h @@ -65,7 +65,7 @@ DBusGProxy *tp_proxy_borrow_interface_by_id (TpProxy *self, GQuark iface, GError **error); DBusGProxy *tp_proxy_add_interface_by_id (TpProxy *self, GQuark iface); -void tp_proxy_add_interfaces (TpProxy *self, const gchar **interfaces); +void tp_proxy_add_interfaces (TpProxy *self, const gchar * const *interfaces); void tp_proxy_invalidate (TpProxy *self, const GError *error); diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c index 93c102c..db46f2a 100644 --- a/telepathy-glib/proxy.c +++ b/telepathy-glib/proxy.c @@ -651,14 +651,14 @@ tp_proxy_add_interface_by_id (TpProxy *self, */ void tp_proxy_add_interfaces (TpProxy *self, - const gchar **interfaces) + const gchar * const *interfaces) { const gchar **iter; if (G_UNLIKELY (interfaces == NULL)) return; - for (iter = interfaces; *iter != NULL; iter++) + for (iter = (const gchar **) interfaces; *iter != NULL; iter++) { if (tp_dbus_check_valid_interface_name (*iter, NULL)) { -- 1.7.4.1