aboutsummaryrefslogtreecommitdiffstats
path: root/sap
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 /sap
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 'sap')
-rw-r--r--sap/sap-dummy.c2
-rw-r--r--sap/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c
index 389548b3..a2f29686 100644
--- a/sap/sap-dummy.c
+++ b/sap/sap-dummy.c
@@ -315,7 +315,7 @@ static DBusMessage *card_status(DBusConnection *conn, DBusMessage *msg,
return dbus_message_new_method_return(msg);
}
-static GDBusMethodTable dummy_methods[] = {
+static const GDBusMethodTable dummy_methods[] = {
{ "OngoingCall", "b", "", ongoing_call},
{ "MaxMessageSize", "u", "", max_msg_size},
{ "DisconnectImmediate", "", "", disconnect_immediate},
diff --git a/sap/server.c b/sap/server.c
index 945d599f..39eddc8d 100644
--- a/sap/server.c
+++ b/sap/server.c
@@ -1303,7 +1303,7 @@ static DBusMessage *get_properties(DBusConnection *c,
return reply;
}
-static GDBusMethodTable server_methods[] = {
+static const GDBusMethodTable server_methods[] = {
{"GetProperties", "", "a{sv}", get_properties},
{"Disconnect", "", "", disconnect},
{ }