Added documentation for memcached_mget_execute
[m6w6/libmemcached] / libmemcached / memcached_strerror.c
index e643db2b7422a2664558411cecd2044703cfcd69..5a8b36958dbbc237129f86bcefe09282034e39de 100644 (file)
@@ -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)
   {
@@ -55,7 +55,7 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re
   case MEMCACHED_STAT:
     return "STAT VALUE";
   case MEMCACHED_ITEM:
-    return "ITEM";
+    return "ITEM VALUE";
   case MEMCACHED_ERRNO:
     return "SYSTEM ERROR";
   case MEMCACHED_FAIL_UNIX_SOCKET:
@@ -78,9 +78,11 @@ char *memcached_strerror(memcached_st *ptr __attribute__((unused)), memcached_re
     return "SERVER IS MARKED DEAD";
   case MEMCACHED_UNKNOWN_STAT_KEY:
     return "ENCOUNTERED AN UNKNOWN STAT KEY";
+  case MEMCACHED_E2BIG:
+    return "ITEM TOO BIG";
   case MEMCACHED_MAXIMUM_RETURN:
     return "Gibberish returned!";
   default:
     return "Gibberish returned!";
-  };
+  }
 }