Am Samstag, 7. Januar 2006 23:11 schrieb Pete Zaitcev:
> If it makes you feel better, find places which take sizeof of this
> structure and use defined size (which is there in headers specifically
> for this reason), like Stern said.

This is asking for trouble. If you want the size of a data structure, you
use the primitive the C language provides. If there are external constraints,
your data structure has to match them. You do not add work arounds to code.
Defining the size of a data structure is a bug (unless you use it for
assertions).

        Regards
                Oliver


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to