Don't use __attribute__((unused))
[awesomized/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, hashkit_return_t rc)
12 {
13 (void)ptr;
14 switch (rc)
15 {
16 case HASHKIT_SUCCESS:
17 return "SUCCESS";
18 case HASHKIT_FAILURE:
19 return "FAILURE";
20 case HASHKIT_MEMORY_ALLOCATION_FAILURE:
21 return "MEMORY ALLOCATION FAILURE";
22 case HASHKIT_MAXIMUM_RETURN:
23 return "Gibberish returned!";
24 default:
25 return "Gibberish returned!";
26 }
27 }