[git commit] bc: it's not clear bc_vm_file() always exits on errors, remove ERRORS_ARE_FATAL
Denys Vlasenko
vda.linux at googlemail.com
Mon Dec 10 19:56:44 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=91cde95916b30d74a9a53127c055403dfce7a838
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/bc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 6dc0f5441..c756d8cd6 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7118,9 +7118,6 @@ err:
free(data);
return s;
}
-#if ERRORS_ARE_FATAL
-# define bc_vm_file(...) (bc_vm_file(__VA_ARGS__), BC_STATUS_SUCCESS)
-#endif
static BcStatus bc_vm_stdin(void)
{
@@ -7421,7 +7418,7 @@ static BcStatus bc_vm_exec(void)
return s;
}
- if (IS_BC || (option_mask32 & BC_FLAG_I))
+ if (IS_BC || (option_mask32 & BC_FLAG_I))
s = bc_vm_stdin();
if (!s && !BC_PARSE_CAN_EXEC(&G.prs))
More information about the busybox-cvs
mailing list