summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-07-05 13:27:00 +0200
committerSeppia <seppia@seppio.fish>2018-07-05 13:27:00 +0200
commitd9c0a666055fe951bfad74aea5fd71ecaf55c905 (patch)
tree8b6b608aa0d7920b322049f27c33377b46b857f2 /src
parent4a0d6286e52b1252782c2943c0b4cd71f1b746fa (diff)
downloadonetimebluh-d9c0a666055fe951bfad74aea5fd71ecaf55c905.tar.gz
onetimebluh-d9c0a666055fe951bfad74aea5fd71ecaf55c905.tar.bz2
onetimebluh-d9c0a666055fe951bfad74aea5fd71ecaf55c905.zip
Info message ignoring quiet
This fixes an info message ignoring the quiet option.
Diffstat (limited to 'src')
-rw-r--r--src/onetimebluh.c8
1 files changed, 6 insertions, 2 deletions
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);
}