changeset 462:de7f674d1224 noffle

[svn] * src/log.c: Rename log structure to logSettings to remove warning about hiding built-in from GCC 3.3.1.
author bears
date Wed, 23 Jul 2003 10:26:49 +0100
parents b540ecb6f218
children 95697d7c97a1
files src/log.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Wed Jul 23 08:53:42 2003 +0100
+++ b/src/log.c	Wed Jul 23 10:26:49 2003 +0100
@@ -1,7 +1,7 @@
 /*
   log.c
 
-  $Id: log.c 413 2002-12-27 21:48:25Z bears $
+  $Id: log.c 607 2003-07-23 09:26:49Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -23,14 +23,14 @@
 {
     Bool interactive;
     unsigned debugMask;
-} log = { FALSE, DEFAULT_DBG_MASK };
+} logSetting = { FALSE, DEFAULT_DBG_MASK };
 
 void
 Log_init( const char *name, Bool interactive, int facility )
 {
     int option = LOG_PID | LOG_CONS;
 
-    log.interactive = interactive;
+    logSetting.interactive = interactive;
     openlog( name, option, facility );
 }
 
@@ -43,7 +43,7 @@
     if ( MAXLENGTH < MAXCHAR )        \
         t[ MAXLENGTH ] = '\0';        \
     syslog( LEVEL, "%s", t );         \
-    if ( log.interactive )            \
+    if ( logSetting.interactive )            \
         fprintf( stderr, "%s\n", t );   \
     va_end( ap );
 
@@ -79,7 +79,7 @@
 void
 Log_dbg( unsigned subsystem, const char *fmt, ... )
 {
-    if ( ( subsystem & log.debugMask ) != 0 ) {
+    if ( ( subsystem & logSetting.debugMask ) != 0 ) {
 	DO_LOG( LOG_DEBUG );
     }
 }
@@ -91,7 +91,7 @@
     if ( mask != 0 )
 	mask |= LOG_DBG_NOFFLE;
 
-    log.debugMask = mask;
+    logSetting.debugMask = mask;
 }
 
 /*