Added/restructured all additional hostname information
[m6w6/libmemcached] / lib / memcached_response.c
index 1276351332d829d851eab826fe4ce61f540465ed..cb74be0a911c6f1fe9ba383299de8c5f668ca199 100644 (file)
@@ -48,7 +48,7 @@ memcached_return memcached_response(memcached_st *ptr,
         return MEMCACHED_UNKNOWN_READ_FAILURE;
     }
   case 'D': /* DELETED */
-    return MEMCACHED_SUCCESS;
+    return MEMCACHED_DELETED;
   case 'N': /* NOT_FOUND */
     {
       if (buffer[4] == 'F')
@@ -61,7 +61,7 @@ memcached_return memcached_response(memcached_st *ptr,
   case 'E': /* PROTOCOL ERROR or END */
     {
       if (buffer[1] == 'N')
-        return MEMCACHED_NOTFOUND;
+        return MEMCACHED_END;
       else if (buffer[1] == 'R')
         return MEMCACHED_PROTOCOL_ERROR;
       else