aboutsummaryrefslogtreecommitdiffstats
path: root/thermometer
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-18 00:23:25 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-17 20:32:20 -0700
commit665014ce89d30411a05b62acf34711e797daa59a (patch)
treeac01cd78ba7eebaefb80fc57f7b0443e15c81cad /thermometer
parentb01bcc4215663ca4e14458727de2ad522103bf99 (diff)
downloadbluez-665014ce89d30411a05b62acf34711e797daa59a.tar.gz
bluez-665014ce89d30411a05b62acf34711e797daa59a.tar.xz
bluez-665014ce89d30411a05b62acf34711e797daa59a.zip
Constify GDBus method tables
Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
Diffstat (limited to 'thermometer')
-rw-r--r--thermometer/thermometer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c
index 92c0225b..08117a6d 100644
--- a/thermometer/thermometer.c
+++ b/thermometer/thermometer.c
@@ -959,7 +959,7 @@ static DBusMessage *disable_intermediate(DBusConnection *conn, DBusMessage *msg,
return dbus_message_new_method_return(msg);
}
-static GDBusMethodTable thermometer_methods[] = {
+static const GDBusMethodTable thermometer_methods[] = {
{ "GetProperties", "", "a{sv}", get_properties },
{ "SetProperty", "sv", "", set_property,
G_DBUS_METHOD_FLAG_ASYNC },