Use comedi_perror to report error if comedi_open fails, and exit with exit
code 1.
This commit is contained in:
parent
5706893a20
commit
d349d2e12b
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue