From: Brian Aker Date: Sun, 13 Feb 2011 02:45:11 +0000 (-0800) Subject: Remove special condition for block and version. X-Git-Tag: 0.51~42 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=de994b897a87ccc8493f31c6b105fc37cfdc90a9;p=m6w6%2Flibmemcached Remove special condition for block and version. --- diff --git a/libmemcached/version.c b/libmemcached/version.c index 8fcc11a0..cb8fa0e0 100644 --- a/libmemcached/version.c +++ b/libmemcached/version.c @@ -13,18 +13,13 @@ memcached_return_t memcached_version(memcached_st *ptr) if (ptr->flags.use_udp) return MEMCACHED_NOT_SUPPORTED; - bool was_blocking= ptr->flags.no_block; memcached_return_t rc; - ptr->flags.no_block= false; - if (ptr->flags.binary_protocol) rc= memcached_version_binary(ptr); else rc= memcached_version_textual(ptr); - ptr->flags.no_block= was_blocking; - return rc; }