Put the doc and version back into the configure.ac
[m6w6/libmemcached] / libmemcached / quit.c
index dc11e97fcea5e65356c5775ca5147d2a01b733ad..a8f70402062d7c1e87a486a2ac54959827091981 100644 (file)
@@ -72,12 +72,12 @@ void memcached_quit(memcached_st *ptr)
   unsigned int x;
 
   if (ptr->hosts == NULL ||
-      ptr->number_of_hosts == 0)
+      memcached_server_count(ptr) == 0)
     return;
 
-  if (ptr->hosts && ptr->number_of_hosts)
+  if (ptr->hosts && memcached_server_count(ptr))
   {
-    for (x= 0; x < ptr->number_of_hosts; x++)
+    for (x= 0; x < memcached_server_count(ptr); x++)
       memcached_quit_server(&ptr->hosts[x], 0);
   }
 }