Re: [Bluez-devel] Alignment issue

Marcel Holtmann
2005-01-23T14:40:41Z

Hi David,

> > your patch results in a lot of "initialization from incompatible
> > pointer type" errors in the utils and hcidump. Basically in
> > conjunction with functions like ntohs() etc. How do we fix this?
>
> Mea culpa... forgot to cast when we deliberately use an integer pointer
> as a pointer to our packed structure containing the same type of int.

patch is now in the CVS and everything seems fine again. Btw what is the
difference between typeof and __typeof__. The latter one is used by the
previous macro and you used the other?

> We might as well also switch sdp_internal.h to use the same macros while
> we're at it.

Fine with me, but then I simply replace it with bt_{get|put}unaligned
and remove the complete stuff. There is no external user sdp_interal.h.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl