summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2007-05-19 17:29:18 +0200
committerDavid Härdeman <david@hardeman.nu>2007-05-19 17:29:18 +0200
commita5ed124b6556e1205bdfa8ad4529cef7d1a33e54 (patch)
treeb653e1939f1bd1c6602facbb63f09e97afd2e359 /utils.c
parenta4e5b979d910384577750a4672fee44e7c468bd0 (diff)
And remove another global variable (verbosity)
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