Merged from build.
[m6w6/libmemcached] / libhashkit / strerror.c
1 /* HashKit
2 * Copyright (C) 2009 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 */
8
9 #include "common.h"
10
11 const char *hashkit_strerror(hashkit_st *ptr __attribute__((unused)), hashkit_return_t rc)
12 {
13 switch (rc)
14 {
15 case HASHKIT_SUCCESS:
16 return "SUCCESS";
17 case HASHKIT_FAILURE:
18 return "FAILURE";
19 case HASHKIT_MEMORY_ALLOCATION_FAILURE:
20 return "MEMORY ALLOCATION FAILURE";
21 case HASHKIT_MAXIMUM_RETURN:
22 return "Gibberish returned!";
23 default:
24 return "Gibberish returned!";
25 }
26 }