* serial_open() calls will now return -1 on error (no call to exit())

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@948 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Nils Springob
2010-10-22 14:29:56 +00:00
parent f1bf228061
commit 0c603e4791
13 changed files with 82 additions and 26 deletions

View File

@@ -504,7 +504,7 @@ static char *usbErrorText(int usbErrno)
/* ------------------------------------------------------------------------- */
static void avrdoper_open(char *port, long baud, union filedescriptor *fdp)
static int avrdoper_open(char *port, long baud, union filedescriptor *fdp)
{
int rval;
char *vname = "obdev.at";
@@ -514,7 +514,9 @@ static void avrdoper_open(char *port, long baud, union filedescriptor *fdp)
if(rval != 0){
fprintf(stderr, "%s: avrdoper_open(): %s\n", progname, usbErrorText(rval));
exit(1);
//return -1;
}
return 0;
}
/* ------------------------------------------------------------------------- */