X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Futilities.c;h=6353ff6b97e8b0894195c4b44353bb451613a044;hb=0ea1009f5f4dddb6d99b7d64f950ae800f5ad438;hp=ef1e60f37c131b157feccd1ac61f4fd5fa94d0ac;hpb=475f477dab6dfc5e4f018d1ecfb128c37e2c44a0;p=awesomized%2Flibmemcached diff --git a/clients/utilities.c b/clients/utilities.c index ef1e60f3..6353ff6b 100644 --- a/clients/utilities.c +++ b/clients/utilities.c @@ -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