summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/log.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-06 14:51:04 +0100
committerMartin Mares <mj@ucw.cz>1999-12-06 14:51:04 +0100
commitf78056fb2cf4554d5dcc50b5e0e79bc09ae825cf (patch)
tree0733bbab60ef3fd23c5481fccfebf1814e8ad98b /sysdep/unix/log.c
parent4ab5331c6370ba83dc7b228f9a94ccc1c64a973e (diff)
downloadbird-f78056fb2cf4554d5dcc50b5e0e79bc09ae825cf.tar
bird-f78056fb2cf4554d5dcc50b5e0e79bc09ae825cf.zip
Allow logging to stderr as well.
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r--sysdep/unix/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index afc30a9..b4a028d 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -167,7 +167,10 @@ log_init(int debug)
void
log_switch(list *l)
{
- current_log_list = l;
+ if (EMPTY_LIST(*l))
+ current_log_list = &init_log_list;
+ else
+ current_log_list = l;
}
void