Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorJacob Siverskog <jacob@teenageengineering.com>2014-05-09 16:31:37 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-05-09 16:33:39 +0400
commit4436338588cb317b5799d3aa3107d2cb0b6192cc (patch)
tree789ece3e7b9527e51164b62b4afc2a08e09a207e /blob.h
parentf32a53f92b377fa92dbafd2ce3d2df93fffb314d (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/blob.h b/blob.h
index bf96241..595834d 100644
--- a/blob.h
+++ b/blob.h
@@ -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;