On 5/15/06, Oliver Neukum <[EMAIL PROTECTED]> wrote:
Building this data structure on the stack is a shooting offense.
I completely agree with you (except for the shooting part :-). I'll make the corrections. In my defense, I copied that from the konicawc code. drivers/usb/media/konicawc.c 921 static int __init konicawc_init(void) 922 { 923 struct usbvideo_cb cbTbl; 924 info(DRIVER_DESC " " DRIVER_VERSION); 925 memset(&cbTbl, 0, sizeof(cbTbl)); 926 cbTbl.probe = konicawc_probe; 927 cbTbl.setupOnOpen = konicawc_setup_on_open; 928 cbTbl.processData = konicawc_process_isoc; 929 cbTbl.getFPS = konicawc_calculate_fps; 930 cbTbl.setVideoMode = konicawc_set_video_mode; 931 cbTbl.startDataPump = konicawc_start_data; ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel