1.1 --- a/ucx/logging.c Wed Feb 27 11:48:29 2013 +0100 1.2 +++ b/ucx/logging.c Wed Feb 27 13:30:21 2013 +0100 1.3 @@ -9,20 +9,20 @@ 1.4 if (logger != NULL) { 1.5 logger->stream = stream; 1.6 logger->writer = (write_func)fwrite; 1.7 - logger->dateformat = "%F %T %z "; 1.8 + logger->dateformat = (char*) "%F %T %z "; 1.9 logger->level = level; 1.10 logger->mask = mask; 1.11 logger->levels = ucx_map_new(8); 1.12 1.13 unsigned int l; 1.14 l = UCX_LOGGER_ERROR; 1.15 - ucx_map_int_put(logger->levels, l, "[ERROR]"); 1.16 + ucx_map_int_put(logger->levels, l, (void*) "[ERROR]"); 1.17 l = UCX_LOGGER_WARN; 1.18 - ucx_map_int_put(logger->levels, l, "[WARNING]"); 1.19 + ucx_map_int_put(logger->levels, l, (void*) "[WARNING]"); 1.20 l = UCX_LOGGER_INFO; 1.21 - ucx_map_int_put(logger->levels, l, "[INFO]"); 1.22 + ucx_map_int_put(logger->levels, l, (void*) "[INFO]"); 1.23 l = UCX_LOGGER_TRACE; 1.24 - ucx_map_int_put(logger->levels, l, "[TRACE]"); 1.25 + ucx_map_int_put(logger->levels, l, (void*) "[TRACE]"); 1.26 } 1.27 1.28 return logger; 1.29 @@ -70,6 +70,5 @@ 1.30 msg[k++] = '\n'; 1.31 1.32 logger->writer(msg, 1, k, logger->stream); 1.33 - fflush(logger->stream); 1.34 } 1.35 }