Made the byteorder test use standard endian test AC_C_BIGENDIAN.
[m6w6/libmemcached] / clients / generator.c
index 213246ba2206a3d84916c8503c43c089bc26e975..5bce0301ab6ae848f9315ea5b85c186210c8f30a 100644 (file)
@@ -47,7 +47,9 @@ void pairs_free(pairs_st *pairs)
 pairs_st *pairs_generate(uint64_t number_of, size_t value_length)
 {
   unsigned int x;
-  pairs_st *pairs= calloc((size_t)(number_of + 1), sizeof(pairs_st));
+  pairs_st *pairs;
+
+  pairs= (pairs_st*)calloc((size_t)number_of + 1, sizeof(pairs_st));
 
   if (!pairs)
     goto error;