X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_purge.c;h=40c8ad61a5af5d0e956e2a4c246601d9fcf1acf3;hb=b3b580a4c87c086ce8a1250d1ca7f1a1fe1bb0bb;hp=624f624571643779a8af78ab1da810764fa35054;hpb=a91a68a7c685f82bc6f46c09fa2036e44a82e7f7;p=awesomized%2Flibmemcached diff --git a/libmemcached/memcached_purge.c b/libmemcached/memcached_purge.c index 624f6245..40c8ad61 100644 --- a/libmemcached/memcached_purge.c +++ b/libmemcached/memcached_purge.c @@ -42,7 +42,7 @@ memcached_return memcached_purge(memcached_server_st *ptr) * data to be sent from the server (the commands was in the output buffer * and just flushed */ - long timeo= ptr->root->poll_timeout; + int32_t timeo= ptr->root->poll_timeout; ptr->root->poll_timeout= 2000; result_ptr= memcached_result_create(ptr->root, &result); @@ -68,7 +68,7 @@ memcached_return memcached_purge(memcached_server_st *ptr) } memcached_result_free(result_ptr); - ptr->root->poll_timeout=timeo; + ptr->root->poll_timeout= timeo; } ptr->root->purging= 0;