X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fmemstat.c;h=6f3c55d80fee6dffa79c6e283090b01cc5537cce;hb=42a7cc99572d9cf161e9db04f31e123b5431df10;hp=40aade209435daa74e62e3845d5948e6b3cbf4eb;hpb=a839a04ae135e6a92b8be858e9c6605d7514c394;p=m6w6%2Flibmemcached diff --git a/src/memstat.c b/src/memstat.c index 40aade20..6f3c55d8 100644 --- a/src/memstat.c +++ b/src/memstat.c @@ -4,6 +4,8 @@ #include #include #include +#include +#include #include #include @@ -50,7 +52,7 @@ int main(int argc, char *argv[]) stat= memcached_stat(memc, NULL, &rc); - if (rc != MEMCACHED_SUCCESS && rc == MEMCACHED_SOME_ERRORS) + if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_SOME_ERRORS) { printf("Failure to communicate with servers (%s)\n", memcached_strerror(memc, rc));