summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-09-05 19:52:44 +0000
committerNick Mathewson <nickm@torproject.org>2008-09-05 19:52:44 +0000
commit8ea780632fd9817a2bd8db1e2ff3119b26795a52 (patch)
tree551362d607037a97f5a370fa0582b47a6a97438a /src/common/log.h
parentc33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4 (diff)
downloadtor-8ea780632fd9817a2bd8db1e2ff3119b26795a52.tar.gz
tor-8ea780632fd9817a2bd8db1e2ff3119b26795a52.zip
Make severity args to add_*_log() functions be const
svn:r16775
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 2204ad1c72..61bc503b38 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -120,13 +120,13 @@ int parse_log_severity_config(const char **cfg,
log_severity_list_t *severity_out);
void set_log_severity_config(int minSeverity, int maxSeverity,
log_severity_list_t *severity_out);
-void add_stream_log(log_severity_list_t *severity, const char *name,
+void add_stream_log(const log_severity_list_t *severity, const char *name,
FILE *stream);
-int add_file_log(log_severity_list_t *severity, const char *filename);
+int add_file_log(const log_severity_list_t *severity, const char *filename);
#ifdef HAVE_SYSLOG_H
-int add_syslog_log(log_severity_list_t *severity);
+int add_syslog_log(const log_severity_list_t *severity);
#endif
-int add_callback_log(log_severity_list_t *severity, log_callback cb);
+int add_callback_log(const log_severity_list_t *severity, log_callback cb);
int get_min_log_level(void);
void switch_logs_debug(void);
void logs_free_all(void);