uint64_t memcached_behavior_get(memcached_st *ptr,
const memcached_behavior_t flag)
{
- if (not ptr)
+ if (ptr == NULL)
{
return MEMCACHED_INVALID_ARGUMENTS;
}
{
if (type < MEMCACHED_DISTRIBUTION_CONSISTENT_MAX)
{
- if (MEMCACHED_DISTRIBUTION_CONSISTENT_WEIGHTED)
+ if (type == MEMCACHED_DISTRIBUTION_CONSISTENT_WEIGHTED)
{
ptr->ketama.weighted= true;
}