diff options
author | David Härdeman <david@hardeman.nu> | 2007-05-19 17:29:18 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2007-05-19 17:29:18 +0200 |
commit | a5ed124b6556e1205bdfa8ad4529cef7d1a33e54 (patch) | |
tree | b653e1939f1bd1c6602facbb63f09e97afd2e359 /utils.c | |
parent | a4e5b979d910384577750a4672fee44e7c468bd0 (diff) |
And remove another global variable (verbosity)
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |