summaryrefslogtreecommitdiffstats
path: root/include/bluetooth.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-01-23 14:36:19 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-01-23 14:36:19 +0000
commitb4790da2d46a5f39d0fdc7fd836ec23b1b483f7e (patch)
tree53727a6d5080b74dab5a426bb4be3a717fcd3911 /include/bluetooth.h
parent43e67213704bfbc638eec70a87001f7c69c33447 (diff)
Fixup the unaligned access
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)