From: Jens Axboe Date: Tue, 23 Sep 2014 16:38:54 +0000 (-0600) Subject: Fix min/max typeof warnings X-Git-Tag: fio-2.1.13~55 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e6f735f0f0e402ca43f589224ccfa2fdf37fa583 Fix min/max typeof warnings Signed-off-by: Jens Axboe --- diff --git a/lib/axmap.c b/lib/axmap.c index 15cd6350..5b8cb309 100644 --- a/lib/axmap.c +++ b/lib/axmap.c @@ -33,7 +33,7 @@ #error "Number of arch bits unknown" #endif -#define BLOCKS_PER_UNIT (1UL << UNIT_SHIFT) +#define BLOCKS_PER_UNIT (1U << UNIT_SHIFT) #define BLOCKS_PER_UNIT_MASK (BLOCKS_PER_UNIT - 1) #define firstfree_valid(b) ((b)->first_free != (uint64_t) -1) diff --git a/lib/zipf.c b/lib/zipf.c index 9b6ce633..e75dc2aa 100644 --- a/lib/zipf.c +++ b/lib/zipf.c @@ -11,7 +11,7 @@ #include "../minmax.h" #include "../hash.h" -#define ZIPF_MAX_GEN 10000000 +#define ZIPF_MAX_GEN 10000000UL static void zipf_update(struct zipf_state *zs) { diff --git a/parse.c b/parse.c index e6d9406e..40cd4658 100644 --- a/parse.c +++ b/parse.c @@ -380,7 +380,7 @@ static int check_int(const char *p, int *val) return 1; } -static int opt_len(const char *str) +static size_t opt_len(const char *str) { char *postfix;