matthieu castet <[EMAIL PROTECTED]> wrote: > > >>+ > >>+ *cmvs = (struct uea_cmvs *)(data + 1); > > > > > > That's a bit rude - asking the compiler to perform a structure copy from an > > odd address. memcpy() would be saner. > > > Could you elaborate a bit more ? > I don't see where there is a copy. > *cmvs is a pointer to the structure, not the structure. And when we > parse the structure, we use get_unaligned functions. > >
Ah, I misread the code. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
