Fix the return type of log_err and log_info functions
[fio.git] / t / log.c
diff --git a/t/log.c b/t/log.c
index 1ed385190eb1df455689d0502f976dc456d720a8..929aac6c3204f17d20cc5e797fe39603861730e8 100644 (file)
--- a/t/log.c
+++ b/t/log.c
@@ -2,7 +2,7 @@
 #include <stdarg.h>
 #include "../minmax.h"
 
-int log_err(const char *format, ...)
+size_t log_err(const char *format, ...)
 {
        char buffer[1024];
        va_list args;
@@ -16,7 +16,7 @@ int log_err(const char *format, ...)
        return fwrite(buffer, len, 1, stderr);
 }
 
-int log_info(const char *format, ...)
+size_t log_info(const char *format, ...)
 {
        char buffer[1024];
        va_list args;