From 63bbdebdf2f515193ab9c067eddc1c2add24e0e3 Mon Sep 17 00:00:00 2001 From: Henrique Dante de Almeida Date: Sun, 20 May 2012 02:07:25 -0300 Subject: Constify GDBus method tables Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \; --- plugins/hfp_hf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/hfp_hf.c') diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c index c11525e1..19a362f5 100644 --- a/plugins/hfp_hf.c +++ b/plugins/hfp_hf.c @@ -198,7 +198,7 @@ static DBusMessage *hfp_agent_release(DBusConnection *conn, return dbus_message_new_method_return(msg); } -static GDBusMethodTable agent_methods[] = { +static const GDBusMethodTable agent_methods[] = { { "NewConnection", "hq", "", hfp_agent_new_connection, G_DBUS_METHOD_FLAG_ASYNC }, { "Release", "", "", hfp_agent_release }, -- cgit v1.2.3