Use comedi_perror to report error if comedi_open fails, and exit with exit

code 1.
This commit is contained in:
Ian Abbott 2006-07-13 17:06:33 +00:00
parent 5706893a20
commit d349d2e12b

View file

@ -54,8 +54,8 @@ int main(int argc,char *argv[])
it=comedi_open(filename);
if(!it){
fprintf(stderr,"cannot open %s: %s\n",filename, strerror(errno));
exit(0);
comedi_perror(filename);
exit(1);
}
printf("overall info:\n");