summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/policy.c1
-rw-r--r--bus/policy.h1
-rw-r--r--bus/services.c3
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 "