X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemstat.cc;h=e50f24530e3bdf9f419e01c4df0079e833a18d7c;hb=23dca174eef8d846e3d4402729b57f6ded035e64;hp=88221cf38ede6f9ca09e80c1130dab923e22cf86;hpb=906d0558357bdd81dec000c71c165646af8c6e5f;p=awesomized%2Flibmemcached diff --git a/clients/memstat.cc b/clients/memstat.cc index 88221cf3..e50f2453 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. * @@ -11,7 +12,7 @@ * Brian Aker * Toru Maesaka */ -#include +#include #include #include @@ -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; }