diff th_util.c @ 7:41885619fc79

Updates.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Nov 2008 22:17:02 +0200
parents 67f4a4233372
children a25f5d22483e
line wrap: on
line diff
--- a/th_util.c	Sat Oct 18 08:49:26 2008 +0300
+++ b/th_util.c	Wed Nov 26 22:17:02 2008 +0200
@@ -13,7 +13,7 @@
 
 /* Default settings
  */
-BOOL	th_isInitialized = FALSE;
+static BOOL	th_initialized = FALSE;
 int	th_verbosityLevel = 2;
 char	*th_prog_name = NULL,
 	*th_prog_fullname = NULL,
@@ -41,7 +41,7 @@
 	else
 		th_prog_license = TH_PROG_LICENSE;
 
-	th_isInitialized = TRUE;
+	th_initialized = TRUE;
 }
 
 
@@ -51,7 +51,7 @@
 void THERR(const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	va_start(ap, pcFormat);
 	fprintf(stderr, "%s: ", th_prog_name);
@@ -63,7 +63,7 @@
 void THMSG(int verbLevel, const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	/* Check if the current verbosity level is enough */
 	if (th_verbosityLevel >= verbLevel) {
@@ -78,7 +78,7 @@
 void THPRINT(int verbLevel, const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	/* Check if the current verbosity level is enough */
 	if (th_verbosityLevel >= verbLevel) {