summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-02 23:36:58 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-02 23:36:58 +0000
commitbd6b3072f902d11f969914c997533c7584f263d5 (patch)
tree9ad59d500fbcaf50711cca75e37ee62fe1914dbd /src/common/log.h
parent6221bdd294c58399e12d13983cca0f0285033092 (diff)
downloadtor-bd6b3072f902d11f969914c997533c7584f263d5.tar.gz
tor-bd6b3072f902d11f969914c997533c7584f263d5.zip
Change logging code to use fds instead of stdio. Fixes bug 861, and probably makes logging slightly faster. Not a backport candidate: bug 861 is too obscure and harmless.
svn:r17456
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 4fd62e79e0..15fb27e0a4 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -123,7 +123,7 @@ int parse_log_severity_config(const char **cfg,
void set_log_severity_config(int minSeverity, int maxSeverity,
log_severity_list_t *severity_out);
void add_stream_log(const log_severity_list_t *severity, const char *name,
- FILE *stream);
+ int fd);
int add_file_log(const log_severity_list_t *severity, const char *filename);
#ifdef HAVE_SYSLOG_H
int add_syslog_log(const log_severity_list_t *severity);