瀏覽代碼

Fix compilation: logfile_is_external() must accept const*

Nick Mathewson 6 年之前
父節點
當前提交
9c604e2bbb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/log.c

+ 1 - 1
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;