From: Nick Mathewson Date: Tue, 12 Dec 2017 14:21:12 +0000 (-0500) Subject: Fix compilation: logfile_is_external() must accept const* X-Git-Tag: tor-0.3.3.1-alpha~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c604e2bbb10f7637316f2e0e226eb4669b7f4ac;p=thirdparty%2Ftor.git Fix compilation: logfile_is_external() must accept const* --- diff --git a/src/common/log.c b/src/common/log.c index 996840a080..ac6d07a929 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -437,7 +437,7 @@ pending_log_message_free_(pending_log_message_t *msg) * handled externally via the system log API, the Android logging API, or is an * external callback function. */ static inline int -logfile_is_external(logfile_t *lf) +logfile_is_external(const logfile_t *lf) { raw_assert(lf); return lf->is_syslog || lf->is_android || lf->callback;