Commit d9c0a666 authored by Seppia's avatar Seppia

Info message ignoring quiet

This fixes an info message ignoring the quiet option.
parent 4a0d6286
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment