X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fgenerator.c;h=213246ba2206a3d84916c8503c43c089bc26e975;hb=f0c2cbb3c6cb62fae50fefe373e50590a6bd50c3;hp=cd1a17bfe71059fceb49fff382b7975220284b35;hpb=f6ae31806fbccf6c2440bd246b555b41cf7b4307;p=awesomized%2Flibmemcached diff --git a/clients/generator.c b/clients/generator.c index cd1a17bf..213246ba 100644 --- a/clients/generator.c +++ b/clients/generator.c @@ -47,9 +47,7 @@ void pairs_free(pairs_st *pairs) pairs_st *pairs_generate(uint64_t number_of, size_t value_length) { unsigned int x; - pairs_st *pairs; - - pairs= (pairs_st*)calloc(number_of + 1, sizeof(pairs_st)); + pairs_st *pairs= calloc((size_t)(number_of + 1), sizeof(pairs_st)); if (!pairs) goto error;