From 52f96be72d2f18994d6133c4410c263133270f0e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 13 Oct 2020 08:42:17 +0200 Subject: [PATCH] fix warning --- src/libmemcached/hosts.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libmemcached/hosts.cc b/src/libmemcached/hosts.cc index 630a52d0..ab58c922 100644 --- a/src/libmemcached/hosts.cc +++ b/src/libmemcached/hosts.cc @@ -1,5 +1,5 @@ /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: - * + * * Libmemcached library * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ @@ -264,7 +264,7 @@ static memcached_return_t update_continuum(Memcached *ptr) if (size_t(sort_host_length) >= sizeof(sort_host) or sort_host_length < 0) { - return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, + return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, memcached_literal_param("snprintf(sizeof(sort_host))")); } @@ -317,7 +317,7 @@ static memcached_return_t update_continuum(Memcached *ptr) if (size_t(sort_host_length) >= sizeof(sort_host) or sort_host_length < 0) { - return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, + return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT, memcached_literal_param("snprintf(sizeof(sort_host)))")); } @@ -359,7 +359,7 @@ static memcached_return_t update_continuum(Memcached *ptr) return MEMCACHED_SUCCESS; } -static memcached_return_t server_add(Memcached *memc, +static memcached_return_t server_add(Memcached *memc, const memcached_string_t& hostname, in_port_t port, uint32_t weight, @@ -441,7 +441,7 @@ memcached_return_t memcached_server_push(memcached_st *shell, const memcached_se WATCHPOINT_ASSERT(instance); memcached_string_t hostname= { memcached_string_make_from_cstr(list[x].hostname) }; - if (__instance_create_with(ptr, instance, + if (__instance_create_with(ptr, instance, hostname, list[x].port, list[x].weight, list[x].type) == NULL) { @@ -494,7 +494,7 @@ memcached_return_t memcached_instance_push(memcached_st *ptr, const struct memca WATCHPOINT_ASSERT(instance); memcached_string_t hostname= { memcached_string_make_from_cstr(list[x]._hostname) }; - if (__instance_create_with(ptr, instance, + if (__instance_create_with(ptr, instance, hostname, list[x].port(), list[x].weight, list[x].type) == NULL) { -- 2.30.2