.pop now ignored.
[m6w6/libmemcached] / clients / generator.c
index 213246ba2206a3d84916c8503c43c089bc26e975..2af06010613e62a4ac50a09bca2dd5bf5464bb51 100644 (file)
@@ -1,3 +1,14 @@
+/* LibMemcached
+ * Copyright (C) 2006-2009 Brian Aker
+ * All rights reserved.
+ *
+ * Use and distribution licensed under the BSD license.  See
+ * the COPYING file in the parent directory for full text.
+ *
+ * Summary:
+ *
+ */
+
 #include "libmemcached/common.h"
 
 #include <stdio.h>
@@ -47,7 +58,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;