aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
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 /attrib/client.c
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 'attrib/client.c')
-rw-r--r--attrib/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 35f1c905..2179f63b 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -515,7 +515,7 @@ static DBusMessage *set_property(DBusConnection *conn,
return btd_error_invalid_args(msg);
}
-static GDBusMethodTable char_methods[] = {
+static const GDBusMethodTable char_methods[] = {
{ "GetProperties", "", "a{sv}", get_properties },
{ "SetProperty", "sv", "", set_property,
G_DBUS_METHOD_FLAG_ASYNC},
@@ -1015,7 +1015,7 @@ static DBusMessage *prim_get_properties(DBusConnection *conn, DBusMessage *msg,
return reply;
}
-static GDBusMethodTable prim_methods[] = {
+static const GDBusMethodTable prim_methods[] = {
{ "DiscoverCharacteristics", "", "ao", discover_char,
G_DBUS_METHOD_FLAG_ASYNC },
{ "RegisterCharacteristicsWatcher", "o", "",