From d9c0a666055fe951bfad74aea5fd71ecaf55c905 Mon Sep 17 00:00:00 2001 From: Seppia Date: Thu, 5 Jul 2018 13:27:00 +0200 Subject: Info message ignoring quiet This fixes an info message ignoring the quiet option. --- src/onetimebluh.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/onetimebluh.c b/src/onetimebluh.c index 296318d..9a05e60 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -208,7 +208,9 @@ void xor (Opts* opzioni) { if (opzioni->input) { mex = fopen (opzioni->input, "r"); } else if (!opzioni->input) { - printf("INFO: Reading from standard input (press ^D to insert the EOF character when you are finished):\n"); + if (!opzioni->quiet) { + printf("INFO: Reading from standard input (press ^D to insert the EOF character when you are finished):\n"); + } input = readInput (stdin, 8); } @@ -363,7 +365,9 @@ void bluh (Opts* opzioni) { if (opzioni->input) { mex = fopen (opzioni->input, "r"); } else if (!opzioni->input) { - printf("INFO: Reading from standard input (press ^D to insert the EOF character when you are finished):\n"); + if (!opzioni->quiet) { + printf("INFO: Reading from standard input (press ^D to insert the EOF character when you are finished):\n"); + } input = readInput (stdin, 8); } -- cgit v1.2.3