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' {} \; --- src/handsfree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handsfree.c') diff --git a/src/handsfree.c b/src/handsfree.c index 66daaf14..2566dd8d 100644 --- a/src/handsfree.c +++ b/src/handsfree.c @@ -270,7 +270,7 @@ static DBusMessage *handsfree_request_phone_number(DBusConnection *conn, return NULL; } -static GDBusMethodTable handsfree_methods[] = { +static const GDBusMethodTable handsfree_methods[] = { { "GetProperties", "", "a{sv}", handsfree_get_properties }, { "SetProperty", "sv", "", handsfree_set_property, G_DBUS_METHOD_FLAG_ASYNC }, -- cgit v1.2.3