diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-03-21 17:55:18 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-03-22 11:28:58 +0000 |
commit | 14aed647a6e4efb233c76a1b4a48a3680af04791 (patch) | |
tree | 5a69c7ce11c212a6b047a7b2cfce07ccffa2e41b /bus | |
parent | 97c11fe28633e5da65a2b5a0353204ce68d6140b (diff) | |
download | dbus-14aed647a6e4efb233c76a1b4a48a3680af04791.tar.gz dbus-14aed647a6e4efb233c76a1b4a48a3680af04791.tar.bz2 dbus-14aed647a6e4efb233c76a1b4a48a3680af04791.zip |
policy: remove unused parameter
Diffstat (limited to 'bus')
-rw-r--r-- | bus/policy.c | 1 | ||||
-rw-r--r-- | bus/policy.h | 1 | ||||
-rw-r--r-- | bus/services.c | 3 |
3 files changed, 1 insertions, 4 deletions
diff --git a/bus/policy.c b/bus/policy.c index 222b3c53..e8203733 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -1242,7 +1242,6 @@ bus_client_policy_check_can_receive (BusClientPolicy *policy, dbus_bool_t bus_client_policy_check_can_own (BusClientPolicy *policy, - DBusConnection *connection, const DBusString *service_name) { DBusList *link; diff --git a/bus/policy.h b/bus/policy.h index 4b3ce70e..b1e2c9fc 100644 --- a/bus/policy.h +++ b/bus/policy.h @@ -156,7 +156,6 @@ dbus_bool_t bus_client_policy_check_can_receive (BusClientPolicy *policy, DBusMessage *message, dbus_int32_t *toggles); dbus_bool_t bus_client_policy_check_can_own (BusClientPolicy *policy, - DBusConnection *connection, const DBusString *service_name); dbus_bool_t bus_client_policy_append_rule (BusClientPolicy *policy, BusPolicyRule *rule); diff --git a/bus/services.c b/bus/services.c index 68a7022a..6f380fac 100644 --- a/bus/services.c +++ b/bus/services.c @@ -459,8 +459,7 @@ bus_registry_acquire_service (BusRegistry *registry, goto out; } - if (!bus_client_policy_check_can_own (policy, connection, - service_name)) + if (!bus_client_policy_check_can_own (policy, service_name)) { dbus_set_error (error, DBUS_ERROR_ACCESS_DENIED, "Connection \"%s\" is not allowed to own the service \"%s\" due " |