--- a/ucx/logging.c Thu Oct 11 08:42:56 2012 +0200 +++ b/ucx/logging.c Thu Oct 11 11:42:31 2012 +0200 @@ -11,7 +11,8 @@ return logger; } -void ucx_logger_log(UcxLogger *logger, unsigned int level, sstr_t message) { +void ucx_logger_log(UcxLogger *logger, unsigned int level, + const sstr_t message) { if (level <= logger->level) { fwrite(message.ptr, 1, message.length, logger->stream); fflush(logger->stream);