--- bluez-4.98.orig/lib/bluetooth.h +++ bluez-4.98/lib/bluetooth.h @@ -113,7 +113,7 @@ enum { ({ \ struct __attribute__((packed)) { \ typeof(*(ptr)) __v; \ - } *__p = (void *) (ptr); \ + } *__p = (typeof(__p)) (ptr); \ __p->__v; \ }) @@ -121,7 +121,7 @@ enum { do { \ struct __attribute__((packed)) { \ typeof(*(ptr)) __v; \ - } *__p = (void *) (ptr); \ + } *__p = (typeof(__p)) (ptr); \ __p->__v = (val); \ } while(0)