aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-05-21 18:03:57 +0100
committerJon Masters <jcm@jonmasters.org>2009-05-27 12:53:57 -0400
commit43dbee40462c3dc89d968bc8dea015618a5ee6af (patch)
tree1408805ddda3f49905d5454f97d84a0d20017992
parentbd2f38809e831d8541f35121ad4ed560a0b7ef5e (diff)
downloadmodule-init-tools-43dbee40462c3dc89d968bc8dea015618a5ee6af.tar.gz
logging: remove unused warning counter
Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r--logging.c4
-rw-r--r--logging.h3
2 files changed, 0 insertions, 7 deletions
diff --git a/logging.c b/logging.c
index 2582321..4330269 100644
--- a/logging.c
+++ b/logging.c
@@ -13,9 +13,6 @@ int logging = 0;
/* Do we want to silently drop all warnings? */
int quiet = 0;
-/* Number of times warn() has been called */
-int warned = 0;
-
/* Do we want informative messages as well as errors? */
int verbose = 0;
@@ -46,7 +43,6 @@ void message(const char *prefix, const char *fmt, va_list *arglist)
void warn(const char *fmt, ...)
{
va_list arglist;
- warned++;
va_start(arglist, fmt);
if (!quiet)
message("WARNING: ", fmt, &arglist);
diff --git a/logging.h b/logging.h
index efa682f..c01187b 100644
--- a/logging.h
+++ b/logging.h
@@ -7,9 +7,6 @@ extern int logging;
/* Do we want to silently drop all warnings? */
extern int quiet;
-/* Number of times warn() has been called */
-extern int warned;
-
/* Do we want informative messages as well as errors? */
extern int verbose;