# HG changeset patch # User bears # Date 1058952409 -3600 # Node ID de7f674d1224858bfa01db08e584b951ef224665 # Parent b540ecb6f218a2d1245790594d78907824da04b3 [svn] * src/log.c: Rename log structure to logSettings to remove warning about hiding built-in from GCC 3.3.1. diff -r b540ecb6f218 -r de7f674d1224 src/log.c --- 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; } /*