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/smart-messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/smart-messaging.c') diff --git a/plugins/smart-messaging.c b/plugins/smart-messaging.c index d6d77cf0..6820b20e 100644 --- a/plugins/smart-messaging.c +++ b/plugins/smart-messaging.c @@ -268,7 +268,7 @@ static DBusMessage *smart_messaging_send_vcal(DBusConnection *conn, return NULL; } -static GDBusMethodTable smart_messaging_methods[] = { +static const GDBusMethodTable smart_messaging_methods[] = { { "RegisterAgent", "o", "", smart_messaging_register_agent }, { "UnregisterAgent", "o", "", smart_messaging_unregister_agent }, { "SendBusinessCard", "say", "o", smart_messaging_send_vcard, -- cgit v1.2.3