X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_strerror.c;h=8b75edd40be73ceb72488fef6ecfcbafe7b0b0b1;hb=c3dd2b1a405b440095f45b6f5ad8b4d4fd0d83a2;hp=4b626713c60ad69be3d375859c0913e3d894d1b2;hpb=d76b611a9173f8ea494b6287d768fdce39159958;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached_strerror.c b/libmemcached/memcached_strerror.c index 4b626713..8b75edd4 100644 --- a/libmemcached/memcached_strerror.c +++ b/libmemcached/memcached_strerror.c @@ -1,6 +1,6 @@ #include "common.h" -char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc) +const char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_return rc) { switch (rc) { @@ -54,6 +54,8 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re return "SERVER VALUE"; case MEMCACHED_STAT: return "STAT VALUE"; + case MEMCACHED_ITEM: + return "ITEM VALUE"; case MEMCACHED_ERRNO: return "SYSTEM ERROR"; case MEMCACHED_FAIL_UNIX_SOCKET: @@ -74,9 +76,11 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re return "THE HOST TRANSPORT PROTOCOL DOES NOT MATCH THAT OF THE CLIENT"; case MEMCACHED_SERVER_MARKED_DEAD: return "SERVER IS MARKED DEAD"; + case MEMCACHED_UNKNOWN_STAT_KEY: + return "ENCOUNTERED AN UNKNOWN STAT KEY"; case MEMCACHED_MAXIMUM_RETURN: return "Gibberish returned!"; default: return "Gibberish returned!"; - }; + } }