Very minor flaw in cfc_write_array_to_buffer?

Just nitpicking, but would it be better if the 
cfc_write_array_to_buffer() function checked for overflow using the 
comedi_buf_write_n_available() function instead of 
comedi_buf_write_alloc()?  At the moment, some space is allocated by 
comedi_buf_write_alloc() that is never used.  It doesn't matter too 
much, as the COMEDI_CB_OVERFLOW event will eventually cause the buffer 
to be reinitialized.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-02-08Z14:34:56