X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=clients%2Futilities.c;h=de2bdf442eba9a866c84485b36b060d12598216a;hb=b539fd56a235cfbbdd12ebc64c66686b518573d0;hp=ef1e60f37c131b157feccd1ac61f4fd5fa94d0ac;hpb=475f477dab6dfc5e4f018d1ecfb128c37e2c44a0;p=awesomized%2Flibmemcached diff --git a/clients/utilities.c b/clients/utilities.c index ef1e60f3..de2bdf44 100644 --- a/clients/utilities.c +++ b/clients/utilities.c @@ -8,8 +8,8 @@ * Summary: * */ +#include "config.h" -#include "libmemcached/common.h" #include #include #include @@ -60,6 +60,7 @@ static const char *lookup_help(memcached_options option) case OPT_UDP: return("Use UDP protocol when communicating with server."); case OPT_USERNAME: return "Username to use for SASL authentication"; case OPT_PASSWD: return "Password to use for SASL authentication"; + case OPT_FILE: return "Path to file in which to save result"; default: WATCHPOINT_ASSERT(0); }; @@ -124,10 +125,10 @@ void process_hash_option(memcached_st *memc, char *opt_hash) } } +#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT static char *username; static char *passwd; -#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT static int get_username(void *context, int id, const char **result, unsigned int *len) { @@ -201,7 +202,7 @@ bool initialize_sasl(memcached_st *memc, char *user, char *password) #else (void)memc; (void)user; - (void)passwd; + (void)password; #endif return true; @@ -209,7 +210,7 @@ bool initialize_sasl(memcached_st *memc, char *user, char *password) void shutdown_sasl(void) { -#if LIBMEMCACHED_WITH_SASL_SUPPORT +#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT if (username != NULL || passwd != NULL) sasl_done(); #endif