X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemdump.c;h=67a2a5400508240c4c8d42fff55f2067d05f2bec;hb=9bcd450682e20f0d704d86948bbb0880e414dfb4;hp=40ab430a4ceca1a0b339569068c02b1b2173217e;hpb=475f477dab6dfc5e4f018d1ecfb128c37e2c44a0;p=awesomized%2Flibmemcached diff --git a/clients/memdump.c b/clients/memdump.c index 40ab430a..67a2a540 100644 --- a/clients/memdump.c +++ b/clients/memdump.c @@ -9,7 +9,8 @@ * */ -#include "libmemcached/common.h" +#include "config.h" + #include #include #include @@ -42,10 +43,11 @@ static char *opt_username; static char *opt_passwd; /* Print the keys and counter how many were found */ -static memcached_return_t key_printer(const memcached_st *ptr __attribute__((unused)), +static memcached_return_t key_printer(const memcached_st *ptr, const char *key, size_t key_length, - void *context __attribute__((unused))) + void *context) { + (void)ptr;(void)context; printf("%.*s\n", (uint32_t)key_length, key); return MEMCACHED_SUCCESS; @@ -90,7 +92,7 @@ int main(int argc, char *argv[]) if (!initialize_sasl(memc, opt_username, opt_passwd)) { memcached_free(memc); - return 1; + return EXIT_FAILURE; } rc= memcached_dump(memc, callbacks, NULL, 1); @@ -112,7 +114,7 @@ int main(int argc, char *argv[]) shutdown_sasl(); - return 0; + return EXIT_SUCCESS; } static void options_parse(int argc, char *argv[])