diff options
author | Henrique Dante de Almeida <hdante@profusion.mobi> | 2012-05-20 02:07:25 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-20 02:47:56 -0700 |
commit | 63bbdebdf2f515193ab9c067eddc1c2add24e0e3 (patch) | |
tree | b24fcbd92bc8c681892d803d9d62f57afd0879d8 /src/network.c | |
parent | addd756348ee6271da8198f4eec955954e149a34 (diff) | |
download | ofono-63bbdebdf2f515193ab9c067eddc1c2add24e0e3.tar.bz2 |
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 'src/network.c')
-rw-r--r-- | src/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c index b8a8cfe4..68749bae 100644 --- a/src/network.c +++ b/src/network.c @@ -623,7 +623,7 @@ static DBusMessage *network_operator_register(DBusConnection *conn, return NULL; } -static GDBusMethodTable network_operator_methods[] = { +static const GDBusMethodTable network_operator_methods[] = { { "GetProperties", "", "a{sv}", network_operator_get_properties }, { "Register", "", "", network_operator_register, G_DBUS_METHOD_FLAG_ASYNC }, @@ -1020,7 +1020,7 @@ static DBusMessage *network_get_operators(DBusConnection *conn, return reply; } -static GDBusMethodTable network_registration_methods[] = { +static const GDBusMethodTable network_registration_methods[] = { { "GetProperties", "", "a{sv}", network_get_properties }, { "Register", "", "", network_register, G_DBUS_METHOD_FLAG_ASYNC }, |