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/push-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/push-notification.c') diff --git a/plugins/push-notification.c b/plugins/push-notification.c index 1c19bf22..1b8f7296 100644 --- a/plugins/push-notification.c +++ b/plugins/push-notification.c @@ -151,7 +151,7 @@ static DBusMessage *push_notification_unregister_agent(DBusConnection *conn, return dbus_message_new_method_return(msg); } -static GDBusMethodTable push_notification_methods[] = { +static const GDBusMethodTable push_notification_methods[] = { { "RegisterAgent", "o", "", push_notification_register_agent }, { "UnregisterAgent", "o", "", push_notification_unregister_agent }, { } -- cgit v1.2.3