From: Michael Wallner Date: Tue, 9 Aug 2022 07:08:42 +0000 (+0200) Subject: libmemcached: fix typo X-Git-Tag: 1.1.2~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=af7bc5b3c322b0880e31cbbef1648a9540eb771e;p=awesomized%2Flibmemcached libmemcached: fix typo --- diff --git a/src/libmemcached/storage.cc b/src/libmemcached/storage.cc index 8e6d5377..eacc04f0 100644 --- a/src/libmemcached/storage.cc +++ b/src/libmemcached/storage.cc @@ -42,7 +42,7 @@ static inline const char *storage_op_string(memcached_storage_action_t verb) { return "set "; } -static inline bool can_by_encrypted(const memcached_storage_action_t verb) { +static inline bool can_be_encrypted(const memcached_storage_action_t verb) { switch (verb) { case SET_OP: case ADD_OP: @@ -296,7 +296,7 @@ memcached_send(memcached_st *shell, const char *group_key, size_t group_key_leng hashkit_string_st *destination = NULL; if (memcached_is_encrypted(ptr)) { - if (can_by_encrypted(verb) == false) { + if (can_be_encrypted(verb) == false) { return memcached_set_error( *ptr, MEMCACHED_NOT_SUPPORTED, MEMCACHED_AT, memcached_literal_param("Operation not allowed while encyrption is enabled"));