summaryrefslogtreecommitdiffstats
path: root/include/bluetooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bluetooth.h')
-rw-r--r--include/bluetooth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h
index 142f6064..86d3f1d2 100644
--- a/include/bluetooth.h
+++ b/include/bluetooth.h
@@ -92,7 +92,7 @@ enum {
({ \
struct __attribute__((packed)) { \
typeof(*(ptr)) __v; \
- } *__p = (ptr); \
+ } *__p = (void *) (ptr); \
__p->__v; \
})
@@ -100,7 +100,7 @@ enum {
do { \
struct __attribute__((packed)) { \
typeof(*(ptr)) __v; \
- } *__p = (ptr); \
+ } *__p = (void *) (ptr); \
__p->__v = (val); \
} while(0)