Mon, 28 Jul 2014 14:44:06 +0200
fixed logging tests for mingw
test/logging_tests.c | file | annotate | diff | comparison | revisions |
--- a/test/logging_tests.c Mon Jul 28 14:36:25 2014 +0200 +++ b/test/logging_tests.c Mon Jul 28 14:44:06 2014 +0200 @@ -85,8 +85,9 @@ logger->mask |= UCX_LOGGER_TIMESTAMP; time_t now = time(NULL); char timestr[13]; - strftime(timestr, 12, "%F:", localtime(&now)); - const uint line2 = __LINE__; ucx_logger_error(logger, "error %d!", 42); + strftime(timestr, 12, "%Y-%m-%d:", localtime(&now)); + const unsigned int line2 = __LINE__; + ucx_logger_error(logger, "error %d!", 42); fseek(stream, 0, SEEK_SET); size_t r = fread(buffer, 1, 100, stream);