diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-25 20:31:49 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-25 21:50:48 -0400 |
commit | e0a974b471cced122a91f03b3f635a6dd89e1499 (patch) | |
tree | 63c128914530d768705bbc817d6fb220a8d8a0ae /src/libsystemd-bus/bus-kernel.c | |
parent | 406e86fdd59946641737ef9d4df3bfd46c6e23c6 (diff) |
bus: avoid gcc warning about casting a pointer to int of different size
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index 9e057fb138..61013ff3c4 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -66,7 +66,7 @@ static void append_payload_vec(struct kdbus_msg_item **d, const void *p, size_t (*d)->size = offsetof(struct kdbus_msg_item, vec) + sizeof(struct kdbus_vec); (*d)->type = KDBUS_MSG_PAYLOAD_VEC; - (*d)->vec.address = (uint64_t) p; + (*d)->vec.address = (intptr_t) p; (*d)->vec.size = sz; *d = (struct kdbus_msg_item *) ((uint8_t*) *d + (*d)->size); |