summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-29 22:02:14 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-29 22:03:55 +0100
commit51502af33df91237196772ac06fd50190e36e198 (patch)
tree27a2aa89191df33239cb9c16a5ecfd390df9e69e /src/libsystemd-bus/bus-kernel.c
parent7d22c717329c6317f97ccd0f68040a3a2b98e760 (diff)
bus: fix callback index when dispatching kernel messages
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 54e85c9443..796426b561 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -561,7 +561,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
return 0;
}
- return translate[found->type](bus, k, d);
+ return translate[found->type - _KDBUS_ITEM_KERNEL_BASE](bus, k, found);
}
int kdbus_translate_attach_flags(uint64_t mask, uint64_t *kdbus_mask) {