From e6f735f0f0e402ca43f589224ccfa2fdf37fa583 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 23 Sep 2014 10:38:54 -0600 Subject: [PATCH] Fix min/max typeof warnings Signed-off-by: Jens Axboe --- lib/axmap.c | 2 +- lib/zipf.c | 2 +- parse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.25.1