X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemstat.cc;h=6fd42d6c40c77305c1e58d1c3fa5010747f4da01;hb=8cf5f36e16ecaf6e1e7622a3a7cad81491602b0d;hp=88221cf38ede6f9ca09e80c1130dab923e22cf86;hpb=906d0558357bdd81dec000c71c165646af8c6e5f;p=awesomized%2Flibmemcached diff --git a/clients/memstat.cc b/clients/memstat.cc index 88221cf3..6fd42d6c 100644 --- a/clients/memstat.cc +++ b/clients/memstat.cc @@ -1,4 +1,5 @@ /* LibMemcached + * Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/ * Copyright (C) 2006-2009 Brian Aker * All rights reserved. * @@ -25,7 +26,7 @@ #include #include -#include +#include #include "client_options.h" #include "utilities.h" @@ -84,13 +85,13 @@ static memcached_return_t stat_printer(memcached_server_instance_st instance, } static memcached_return_t server_print_callback(const memcached_st *, - const memcached_server_st *instance, + memcached_server_instance_st instance, void *) { std::cerr << memcached_server_name(instance) << ":" << memcached_server_port(instance) << - " " << int(instance->major_version) << - "." << int(instance->minor_version) << - "." << int(instance->micro_version) << std::endl; + " " << int(memcached_server_major_version(instance)) << + "." << int(memcached_server_minor_version(instance)) << + "." << int(memcached_server_micro_version(instance)) << std::endl; return MEMCACHED_SUCCESS; }