projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Put the doc and version back into the configure.ac
[m6w6/libmemcached]
/
libmemcached
/
quit.c
diff --git
a/libmemcached/quit.c
b/libmemcached/quit.c
index dc11e97fcea5e65356c5775ca5147d2a01b733ad..a8f70402062d7c1e87a486a2ac54959827091981 100644
(file)
--- a/
libmemcached/quit.c
+++ b/
libmemcached/quit.c
@@
-72,12
+72,12
@@
void memcached_quit(memcached_st *ptr)
unsigned int x;
if (ptr->hosts == NULL ||
unsigned int x;
if (ptr->hosts == NULL ||
-
ptr->number_of_hosts
== 0)
+
memcached_server_count(ptr)
== 0)
return;
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);
}
}
memcached_quit_server(&ptr->hosts[x], 0);
}
}