~piotr-sikora/libmemcached/fix-tests-on-openbsd

« back to all changes in this revision

Viewing changes to clients/memslap.cc

  • Committer: Brian Aker
  • Date: 2011-04-28 00:30:03 UTC
  • mfrom: (929.1.88 libmemcached-build2)
  • Revision ID: brian@tangent.org-20110428003003-bm1qzgmg9kaawp5d
Merge in code for C++ compiling of libmemcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
  if (opt_createial_load)
204
204
    pairs= load_create_data(memc, opt_createial_load, &actual_loaded);
205
205
 
206
 
  char **keys= calloc(actual_loaded, sizeof(char*));
207
 
  size_t *key_lengths= calloc(actual_loaded, sizeof(size_t));
 
206
  char **keys= static_cast<char **>(calloc(actual_loaded, sizeof(char*)));
 
207
  size_t *key_lengths= static_cast<size_t *>(calloc(actual_loaded, sizeof(size_t)));
208
208
 
209
209
  if (keys == NULL || key_lengths == NULL)
210
210
  {