#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
+#include <string.h>
+#include <assert.h>
#include <getopt.h>
#include <memcached.h>
stat= memcached_stat(memc, NULL, &rc);
- if (rc != MEMCACHED_SUCCESS && rc == MEMCACHED_SOME_ERRORS)
+ if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_SOME_ERRORS)
{
printf("Failure to communicate with servers (%s)\n",
memcached_strerror(memc, rc));