Skip to content

Commit

Permalink
Fix the return type of log_err and log_info functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
bcran authored and axboe committed Feb 13, 2017
1 parent c6b80f7 commit d1f20a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/log.c
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d1f20a3

Please sign in to comment.