From: Frank Mori Hess Date: Sat, 3 May 2003 14:57:15 +0000 (+0000) Subject: i shouldn't have made comedi_internal_data_read() inline, it's too long, X-Git-Tag: r0_7_21~175 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e75f09dcf91969505e591eb599fb04aab6e82442;p=comedilib.git i shouldn't have made comedi_internal_data_read() inline, it's too long, and it causes gcc 2.9 to produce a bogus warning --- diff --git a/lib/data.c b/lib/data.c index 4b5fe51..689669f 100644 --- a/lib/data.c +++ b/lib/data.c @@ -84,12 +84,12 @@ int comedi_data_write(comedi_t *it,unsigned int subdev,unsigned int chan,unsigne } } -static inline int comedi_internal_data_read_n(comedi_t *it, +static int comedi_internal_data_read_n(comedi_t *it, unsigned int subdev, unsigned int chanspec, lsampl_t *data, unsigned int n) { subdevice *s; - + if(!valid_subd(it,subdev)) return -1;