diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2005-01-23 14:36:19 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2005-01-23 14:36:19 +0000 | 
| commit | b4790da2d46a5f39d0fdc7fd836ec23b1b483f7e (patch) | |
| tree | 53727a6d5080b74dab5a426bb4be3a717fcd3911 | |
| parent | 43e67213704bfbc638eec70a87001f7c69c33447 (diff) | |
Fixup the unaligned access
| -rw-r--r-- | include/bluetooth.h | 4 | 
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) | 
