Constify method tables with the following commands:
---
src/client.c | 2 +-
src/manager.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/client.c b/src/client.c
index 154685e..b2735d9 100644
--- a/src/client.c
+++ b/src/client.c
@@ -104,7 +104,7 @@ static DBusMessage *find_proxy_for_url(DBusConnection *conn,
return NULL;
}
-static GDBusMethodTable client_methods[] = {
+static const GDBusMethodTable client_methods[] = {
{ "FindProxyForURL", "ss", "s", find_proxy_for_url,
G_DBUS_METHOD_FLAG_ASYNC },
{ },
diff --git a/src/manager.c b/src/manager.c
index 46fe350..9e2b4f3 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -281,7 +281,7 @@ static DBusMessage *destroy_proxy_config(DBusConnection
*conn,
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
-static GDBusMethodTable manager_methods[] = {
+static const GDBusMethodTable manager_methods[] = {
{ "CreateProxyConfiguration", "a{sv}", "o", create_proxy_config },
{ "DestroyProxyConfiguration", "o", "", destroy_proxy_config },
{ },
--
1.7.10.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman