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/ctm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctm.c') diff --git a/src/ctm.c b/src/ctm.c index 9cece8af..2ff1cca3 100644 --- a/src/ctm.c +++ b/src/ctm.c @@ -202,7 +202,7 @@ static DBusMessage *ctm_set_property(DBusConnection *conn, DBusMessage *msg, return __ofono_error_invalid_args(msg); } -static GDBusMethodTable ctm_methods[] = { +static const GDBusMethodTable ctm_methods[] = { { "GetProperties", "", "a{sv}", ctm_get_properties, G_DBUS_METHOD_FLAG_ASYNC }, { "SetProperty", "sv", "", ctm_set_property, -- cgit v1.2.3