X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ferror_conditions.cc;h=ad4e2c8372055842d1116a1990711155814013bc;hb=b0ef8cb4b2a4056fc7df7c16aa6a170edb4dea34;hp=d06f422559397bbb6834c8698d63f35522bca72e;hpb=c4dbc7e56b01545e25bc95ba122c79d4a2631a99;p=awesomized%2Flibmemcached diff --git a/tests/error_conditions.cc b/tests/error_conditions.cc index d06f4225..ad4e2c83 100644 --- a/tests/error_conditions.cc +++ b/tests/error_conditions.cc @@ -35,38 +35,29 @@ * */ -#include +#include #define BUILDING_LIBMEMCACHED #include #include -#include -#include -#ifdef __cplusplus -extern "C" { -#endif +#include -test_return_t memcached_increment_MEMCACHED_NO_SERVERS(memcached_st *junk) +test_return_t memcached_increment_MEMCACHED_NO_SERVERS(memcached_st *) { - (void)junk; memcached_st *memc_ptr; memc_ptr= memcached_create(NULL); test_true(memc_ptr); - memcached_increment(memc_ptr, memcached_string_with_size("dead key"), 1, NULL); + memcached_increment(memc_ptr, memcached_literal_param("dead key"), 1, NULL); test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS); - memcached_increment(memc_ptr, memcached_string_with_size("dead key"), 1, NULL); + memcached_increment(memc_ptr, memcached_literal_param("dead key"), 1, NULL); test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS); memcached_free(memc_ptr); return TEST_SUCCESS; } - -#ifdef __cplusplus -} -#endif