log.c: New functions to hide access to quiet and silent flags

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-02 12:42:44 +02:00
1 parent 60df2f2ea9
commit cd947a69a8
6 files changed
+24 -13

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ void print(int action, const char *fmt, ...)
const char pending[] = " \e[1m[ \\/ ]\e[0m\n";
const char dots[] = " .....................................................................";
if (silent)
if (log_is_silent())
return;
if (fmt) {