aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-10 23:09:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-10 23:09:08 +0200
commit2e0f24d00b85c617400413bb2d179fd1028420c4 (patch)
tree95488f07f3a5e6a8558cbde11d2372d1c53ca246 /unix.c
parentb6cd9e9fe0aa86e83fc4a43b3db2240839e2103a (diff)
parent6a72a574df321683ee51f7cef14255cbb4cdbeba (diff)
Merge support for cross-compiling for Windows using the mingw32 compiler.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index d25aeb2e..0566fa56 100644
--- a/unix.c
+++ b/unix.c
@@ -59,12 +59,18 @@ int main( int argc, char *argv[], char **envp )
if( global.conf->runmode == RUNMODE_INETD )
{
+ log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
+ log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
+
i = bitlbee_inetd_init();
log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION );
}
else if( global.conf->runmode == RUNMODE_DAEMON )
{
+ log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
+ log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
+
i = bitlbee_daemon_init();
log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
}
@@ -218,3 +224,5 @@ double gettime()
gettimeofday( time, 0 );
return( (double) time->tv_sec + (double) time->tv_usec / 1000000 );
}
+
+