aboutsummaryrefslogtreecommitdiffstats
path: root/report.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2009-05-29 07:53:59 +0000
committerMatthias Andree <matthias.andree@gmx.de>2009-05-29 07:53:59 +0000
commite168a13ce589300db74c09e82bbe63c1297a1274 (patch)
tree7d64b648a2ce43783c0a8945c591e1dbd1c89240 /report.c
parent01c9b0afb3e30324f2984cece695f79b925d7a9f (diff)
downloadfetchmail-e168a13ce589300db74c09e82bbe63c1297a1274.tar.gz
fetchmail-e168a13ce589300db74c09e82bbe63c1297a1274.tar.bz2
fetchmail-e168a13ce589300db74c09e82bbe63c1297a1274.zip
Let logfile take precedence over syslog if and only if logfile is effective.
svn path=/branches/BRANCH_6-3/; revision=5349
Diffstat (limited to 'report.c')
-rw-r--r--report.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/report.c b/report.c
index fa1ce4ad..f8f2187f 100644
--- a/report.c
+++ b/report.c
@@ -149,12 +149,11 @@ report (FILE *errfp, message, va_alist)
}
}
-/*
- * Calling report_init(1) causes report_build and report_complete to write
- * to errfp without buffering. This is needed for the ticker dots to
- * work correctly.
+/**
+ * Configure the report module. The output is set according to
+ * \a mode.
*/
-void report_init(int mode)
+void report_init(int mode /** 0: regular output, 1: unbuffered output, -1: syslog */)
{
switch(mode)
{