From: Alban Crequy Date: Wed, 21 Mar 2012 17:55:18 +0000 (+0000) Subject: policy: remove unused parameter X-Git-Tag: dbus-1.5.12~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14aed647a6e4efb233c76a1b4a48a3680af04791;p=thirdparty%2Fdbus.git policy: remove unused parameter --- diff --git a/bus/policy.c b/bus/policy.c index 222b3c53d..e8203733f 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 4b3ce70e3..b1e2c9fc6 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 68a7022ac..6f380fac7 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 "