summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-10-27 16:33:43 +0900
committerJens Axboe <axboe@fb.com>2015-10-27 16:33:43 +0900
commit5768cc2b5dd6460065f779d248139f6c679c0d27 (patch)
tree556ccf5ee856de6f97c9380931c0e2fef701ef69 /parse.c
parentf6a7df5314e83df9cc408e7bf447afb76bee8454 (diff)
downloadfio-5768cc2b5dd6460065f779d248139f6c679c0d27.tar.gz
fio-5768cc2b5dd6460065f779d248139f6c679c0d27.tar.bz2
Proper size return from output buffers
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 3e94c7d5..e330deae 100644
--- a/parse.c
+++ b/parse.c
@@ -52,7 +52,7 @@ static void posval_sort(struct fio_option *o, struct value_pair *vpmap)
}
static void show_option_range(struct fio_option *o,
- int (*logger)(const char *format, ...))
+ size_t (*logger)(const char *format, ...))
{
if (o->type == FIO_OPT_FLOAT_LIST) {
if (o->minfp == DBL_MIN && o->maxfp == DBL_MAX)
@@ -109,7 +109,7 @@ static void show_option_help(struct fio_option *o, int is_err)
"no argument (opt)",
"deprecated",
};
- int (*logger)(const char *format, ...);
+ size_t (*logger)(const char *format, ...);
if (is_err)
logger = log_err;