summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-06-05 13:37:56 -0600
committerJens Axboe <axboe@kernel.dk>2018-06-05 13:37:56 -0600
commit34a3a855c4335f2a388f0184ec868b1cbfe326c5 (patch)
treefa3de5e78c95ddc835bb9c65134ddd9326abd025 /parse.c
parenta0eba8208b58c8d13e6076460a3affeb9596adf7 (diff)
downloadfio-34a3a855c4335f2a388f0184ec868b1cbfe326c5.tar.gz
fio-34a3a855c4335f2a388f0184ec868b1cbfe326c5.tar.bz2
log: fix signedness issue
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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 9685f1ea..6261fca2 100644
--- a/parse.c
+++ b/parse.c
@@ -69,7 +69,7 @@ static void posval_sort(const struct fio_option *o, struct value_pair *vpmap)
}
static void show_option_range(const struct fio_option *o,
- size_t (*logger)(const char *format, ...))
+ ssize_t (*logger)(const char *format, ...))
{
if (o->type == FIO_OPT_FLOAT_LIST) {
const char *sep = "";
@@ -132,7 +132,7 @@ static void show_option_help(const struct fio_option *o, int is_err)
"deprecated",
"unsupported",
};
- size_t (*logger)(const char *format, ...);
+ ssize_t (*logger)(const char *format, ...);
if (is_err)
logger = log_err;