* fileio.c (fileio): Don't exit(1) if something goes wrong; return

-1 instead.  Don't refer to obsolete option -f to specify the file
format.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1216 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2013-09-11 09:21:37 +00:00
parent e5501feb43
commit e814b615b2
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2013-09-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* fileio.c (fileio): Don't exit(1) if something goes wrong; return
-1 instead. Don't refer to obsolete option -f to specify the file
format.
2013-09-10 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Submitted by Matthias Trute:

View File

@ -1542,9 +1542,9 @@ int fileio(int op, char * filename, FILEFMT format,
if (using_stdio) {
fprintf(stderr,
"%s: can't auto detect file format when using stdin/out.\n"
" Please specify a file format using the -f option and try again.\n",
progname);
exit(1);
"%s Please specify a file format and try again.\n",
progname, progbuf);
return -1;
}
format = fmt_autodetect(fname);