diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 19:52:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 19:52:44 +0000 |
commit | 8ea780632fd9817a2bd8db1e2ff3119b26795a52 (patch) | |
tree | 551362d607037a97f5a370fa0582b47a6a97438a /src/common/log.c | |
parent | c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4 (diff) | |
download | tor-8ea780632fd9817a2bd8db1e2ff3119b26795a52.tar.gz tor-8ea780632fd9817a2bd8db1e2ff3119b26795a52.zip |
Make severity args to add_*_log() functions be const
svn:r16775
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/log.c b/src/common/log.c index e49cc84116..785b066522 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -497,7 +497,7 @@ set_log_severity_config(int loglevelMin, int loglevelMax, /** Add a log handler named <b>name</b> to send all messages in <b>severity</b> * to <b>stream</b>. Copies <b>severity</b>. Helper: does no locking. */ static void -add_stream_log_impl(log_severity_list_t *severity, +add_stream_log_impl(const log_severity_list_t *severity, const char *name, FILE *stream) { logfile_t *lf; @@ -515,7 +515,7 @@ add_stream_log_impl(log_severity_list_t *severity, * to <b>stream</b>. Steals a reference to <b>severity</b>; the caller must * not use it after calling this function. */ void -add_stream_log(log_severity_list_t *severity, +add_stream_log(const log_severity_list_t *severity, const char *name, FILE *stream) { LOCK_LOGS(); @@ -551,7 +551,7 @@ add_temp_log(int min_severity) * to the function <b>cb</b>. */ int -add_callback_log(log_severity_list_t *severity, log_callback cb) +add_callback_log(const log_severity_list_t *severity, log_callback cb) { logfile_t *lf; lf = tor_malloc_zero(sizeof(logfile_t)); @@ -640,7 +640,7 @@ mark_logs_temp(void) * (by fopen). */ int -add_file_log(log_severity_list_t *severity, const char *filename) +add_file_log(const log_severity_list_t *severity, const char *filename) { FILE *f; logfile_t *lf; @@ -667,7 +667,7 @@ add_file_log(log_severity_list_t *severity, const char *filename) * Add a log handler to send messages to they system log facility. */ int -add_syslog_log(log_severity_list_t *severity) +add_syslog_log(const log_severity_list_t *severity) { logfile_t *lf; if (syslog_count++ == 0) |