diff options
author | Jacob Siverskog <jacob@teenageengineering.com> | 2014-05-09 16:31:37 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-09 16:33:39 +0400 |
commit | 4436338588cb317b5799d3aa3107d2cb0b6192cc (patch) | |
tree | 789ece3e7b9527e51164b62b4afc2a08e09a207e /blob.h | |
parent | f32a53f92b377fa92dbafd2ce3d2df93fffb314d (diff) |
blob/blobmsg: Perform explicit casts from void* to avoid compilation errors when using libubox from C++.
Signed-off by: Jacob Siverskog <jacob@teenageengineering.com>
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ blob_get_u32(const struct blob_attr *attr) static inline uint64_t blob_get_u64(const struct blob_attr *attr) { - uint32_t *ptr = blob_data(attr); + uint32_t *ptr = (uint32_t *) blob_data(attr); uint64_t tmp = ((uint64_t) be32_to_cpu(ptr[0])) << 32; tmp |= be32_to_cpu(ptr[1]); return tmp; |