mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 13:38:05 +02:00
policy: remove unused parameter
This commit is contained in:
parent
97c11fe286
commit
14aed647a6
3 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue