summaryrefslogtreecommitdiff
path: root/src/core/bus-endpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/bus-endpoint.c')
-rw-r--r--src/core/bus-endpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/bus-endpoint.c b/src/core/bus-endpoint.c
index 27dd192a2f..0c4b3e7c8b 100644
--- a/src/core/bus-endpoint.c
+++ b/src/core/bus-endpoint.c
@@ -26,14 +26,14 @@
int bus_kernel_set_endpoint_policy(int fd, uid_t uid, BusEndpoint *ep) {
- struct kdbus_cmd_update *update;
+ struct kdbus_cmd *update;
struct kdbus_item *n;
BusEndpointPolicy *po;
Iterator i;
size_t size;
int r;
- size = ALIGN8(offsetof(struct kdbus_cmd_update, items));
+ size = ALIGN8(offsetof(struct kdbus_cmd, items));
HASHMAP_FOREACH(po, ep->policy_hash, i) {
size += ALIGN8(offsetof(struct kdbus_item, str) + strlen(po->name) + 1);