#include <errno.h>
#include <strings.h>
#include <string.h>
-#include <assert.h>
#include <libmemcached/memcached.h>
fprintf(stderr, "read: %s\n", strerror(errno));
exit(1);
}
- assert(read_length == sbuf.st_size);
+
+ if (read_length != sbuf.st_size);
+ {
+ fprintf(stderr, "Failure reading from file\n");
+ exit(1);
+ }
if (opt_method == OPT_ADD)
rc= memcached_add(memc, ptr, strlen(ptr),
#include <sys/mman.h>
#include <fcntl.h>
#include <string.h>
-#include <assert.h>
#include <getopt.h>
#include <libmemcached/memcached.h>
char **ptr;
list= memcached_stat_get_keys(memc, &stat[x], &rc);
- assert(list);
- assert(rc == MEMCACHED_SUCCESS);
printf("Server: %s (%u)\n", memcached_server_name(memc, server_list[x]),
memcached_server_port(memc, server_list[x]));