From 74215b552126a43e4331a7a9c78497ac0ffe2257 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 10 Mar 2008 12:18:02 +0000 Subject: [PATCH] (ccl_driver): If ccl->quit_silently is nonzero, don't append "CCL: Quitted" when the CCL program is quitted. (setup_ccl_program): Initialize ccl->quit_silently to zero. --- src/ccl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ccl.c b/src/ccl.c index f0c078228df..19637e01fca 100644 --- a/src/ccl.c +++ b/src/ccl.c @@ -1909,7 +1909,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed) break; case CCL_STAT_QUIT: - sprintf(msg, "\nCCL: Quited."); + if (! ccl->quit_silently) + sprintf(msg, "\nCCL: Quited."); break; default: @@ -2112,6 +2113,7 @@ setup_ccl_program (ccl, ccl_prog) ccl->eol_type = CODING_EOL_LF; ccl->suppress_error = 0; ccl->eight_bit_control = 0; + ccl->quit_silently = 0; return 0; } -- 2.39.5