summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-05-17 23:25:31 +0200
committerKay Sievers <kay@vrfy.org>2013-05-17 23:26:28 +0200
commit16af1d3922e1382c26b1beba38ddb22581c49f3b (patch)
treeef4be8b70a7befeeea49e75484c46b0969fa90a0 /src/libsystemd-bus/bus-kernel.c
parent2b3e18de74ca89b374dd4f7a2c30e5731d347841 (diff)
bus: do not pass a pointer but a uint64_t address in RECV
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd-bus/bus-kernel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 107b2bd694..50b28e7281 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -639,19 +639,21 @@ fail:
}
int bus_kernel_read_message(sd_bus *bus, sd_bus_message **m) {
+ uint64_t addr;
struct kdbus_msg *k;
int r;
assert(bus);
assert(m);
- r = ioctl(bus->input_fd, KDBUS_CMD_MSG_RECV, &k);
+ r = ioctl(bus->input_fd, KDBUS_CMD_MSG_RECV, &addr);
if (r < 0) {
if (errno == EAGAIN)
return 0;
return -errno;
}
+ k = UINT64_TO_PTR(addr);
r = bus_kernel_make_message(bus, k, m);
if (r <= 0)