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/call-barring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/call-barring.c') diff --git a/src/call-barring.c b/src/call-barring.c index afb3fceb..952e4c2c 100644 --- a/src/call-barring.c +++ b/src/call-barring.c @@ -966,7 +966,7 @@ static DBusMessage *cb_set_passwd(DBusConnection *conn, DBusMessage *msg, return NULL; } -static GDBusMethodTable cb_methods[] = { +static const GDBusMethodTable cb_methods[] = { { "GetProperties", "", "a{sv}", cb_get_properties, G_DBUS_METHOD_FLAG_ASYNC }, { "SetProperty", "svs", "", cb_set_property, -- cgit v1.2.3