On Sat, 23 Oct 2004 13:17:29 -0700, David Brownell <[EMAIL PROTECTED]> wrote:

> On Saturday 23 October 2004 12:41, Pete Zaitcev wrote:
> > 
> > I really cannot stand this style. Sizeofs taken off data instead of a type
> > are simply evil and misguided.
> 
> Actually I strongly prefer "p = alloc(sizeof *p);" constructs since
> they don't break when, for example, typeof(p) changes.

I know the seeds of evil in you and I strongly disapprove.

        struct foo {  char *ptr  } *boo;

        boo = kmalloc(sizeof(*boo), GFP_KERNEL);

-- Pete


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to