~brianaker/libmemcached/embedded

« back to all changes in this revision

Viewing changes to clients/generator.c

  • Committer: Brian Aker
  • Date: 2009-09-22 08:09:29 UTC
  • mfrom: (568.4.1 libmemcached)
  • Revision ID: brian@gaz-20090922080929-xwukchclxxhunn4v
Merge Patrick

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
pairs_st *pairs_generate(uint64_t number_of, size_t value_length)
48
48
{
49
49
  unsigned int x;
50
 
  pairs_st *pairs= calloc((size_t)(number_of + 1), sizeof(pairs_st));
 
50
  pairs_st *pairs;
 
51
 
 
52
  pairs= (pairs_st*)calloc((size_t)number_of + 1, sizeof(pairs_st));
51
53
 
52
54
  if (!pairs)
53
55
    goto error;