X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemstat.cc;h=1eab6f9f30623b52d503c6ecbafdc2f005104780;hb=ca663a567bc8d3facb22b035bcad19349e42a9b1;hp=88221cf38ede6f9ca09e80c1130dab923e22cf86;hpb=b5495838fb245aa1068a1198ed549b98a9c3e666;p=m6w6%2Flibmemcached diff --git a/clients/memstat.cc b/clients/memstat.cc index 88221cf3..1eab6f9f 100644 --- a/clients/memstat.cc +++ b/clients/memstat.cc @@ -84,13 +84,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; }