From b684c8e6a0646714ea61c3f328791a2b9dfe410e Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Thu, 21 Jan 2010 05:48:07 +0000 Subject: [PATCH] Don't trigger open file error if the last command is "quit" in command file. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1692 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 5 +++++ urjtag/src/apps/jtag/jtag.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 2e751d03..bc06c871 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2010-01-21 Jie Zhang + + * src/apps/jtag/jtag.c (main): Don't trigger open file error + if the last command is "quit". + 2010-01-20 Jie Zhang * po/POTFILES.in: Remove src/bsdl/bsdl_bison.c, src/bsdl/bsdl_flex.c, diff --git a/urjtag/src/apps/jtag/jtag.c b/urjtag/src/apps/jtag/jtag.c index 339e9997..fe530655 100644 --- a/urjtag/src/apps/jtag/jtag.c +++ b/urjtag/src/apps/jtag/jtag.c @@ -488,7 +488,7 @@ main (int argc, char *const argv[]) go = urj_parse_file (URJ_LOG_LEVEL_NORMAL, chain, argv[i]); cleanup (chain); - if (go < 0) + if (go < 0 && go != URJ_STATUS_MUST_QUIT) { printf (_("Unable to open file `%s'!\n"), argv[i]); break;