From b4790da2d46a5f39d0fdc7fd836ec23b1b483f7e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 23 Jan 2005 14:36:19 +0000 Subject: Fixup the unaligned access --- include/bluetooth.h | 4 ++-- 1 file 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) -- cgit