summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 3c73c6b..67fdc76 100644
--- a/utils.c
+++ b/utils.c
@@ -28,7 +28,14 @@
#include "utils.h"
/* Controls the verbosity level for msg() */
-int verbosity = 0;
+static int verbosity = 0;
+
+/* Adjusts the verbosity level for msg() */
+void
+adjust_verbosity(int adj)
+{
+ verbosity += adj;
+}
/*
* Prints messages to console according to the current verbosity