projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix whitespace.
[m6w6/libmemcached]
/
clients
/
generator.c
diff --git
a/clients/generator.c
b/clients/generator.c
index 213246ba2206a3d84916c8503c43c089bc26e975..2af06010613e62a4ac50a09bca2dd5bf5464bb51 100644
(file)
--- a/
clients/generator.c
+++ b/
clients/generator.c
@@
-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>
#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_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;
if (!pairs)
goto error;