On Tue, Nov 19, 2002 at 04:47:58PM -0800, David Brownell wrote: > > >>Yeah, looking at struct urb, transfer_buffer is a void *, so nevermind, > >>I'll take this patch. Sorry for the noise :) > > > >It's really a bunch of bytes, right? So u8 * would be a better description? > > Doesn't "void *" behave better for casts though?
Quite the contrary. Saying "void *" means: "compiler, don't check". If you have a buffer and declare it "char *", then it cannot be confused with a "struct urb *urb". But a "void *" can. Therefore it is generally a bad idea to use void * pointers. Andries ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel