From 6e52d6cfe1d070c29deb31024ba9999406bf57cc Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 27 Jan 2002 21:05:05 +0000 Subject: [PATCH] fixed buffer resizing for subdevices that aren't subdevice zero. --- comedi_config/comedi_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi_config/comedi_config.c b/comedi_config/comedi_config.c index 0ed16d0..92101be 100644 --- a/comedi_config/comedi_config.c +++ b/comedi_config/comedi_config.c @@ -316,7 +316,7 @@ int main(int argc,char *argv[]) // do buffer resizing if(read_buf_size) { - if(devinfo.read_subdevice){ + if(devinfo.read_subdevice < 0){ fprintf(stderr,_("warning: no read subdevice, resize ignored\n")); }else{ memset(&bc, 0, sizeof(bc)); @@ -337,7 +337,7 @@ int main(int argc,char *argv[]) } if(write_buf_size) { - if(devinfo.write_subdevice){ + if(devinfo.write_subdevice < 0){ fprintf(stderr,_("warning: no write subdevice, resize ignored\n")); }else{ memset(&bc, 0, sizeof(bc)); -- 2.26.2