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/voicecall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/voicecall.c') diff --git a/src/voicecall.c b/src/voicecall.c index 104b6006..73b84b9c 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -667,7 +667,7 @@ static DBusMessage *voicecall_answer(DBusConnection *conn, return NULL; } -static GDBusMethodTable voicecall_methods[] = { +static const GDBusMethodTable voicecall_methods[] = { { "GetProperties", "", "a{sv}", voicecall_get_properties }, { "Deflect", "s", "", voicecall_deflect, G_DBUS_METHOD_FLAG_ASYNC }, @@ -2117,7 +2117,7 @@ static DBusMessage *manager_get_calls(DBusConnection *conn, return reply; } -static GDBusMethodTable manager_methods[] = { +static const GDBusMethodTable manager_methods[] = { { "GetProperties", "", "a{sv}", manager_get_properties }, { "Dial", "ss", "o", manager_dial, G_DBUS_METHOD_FLAG_ASYNC }, -- cgit v1.2.3