Made spdylay_strerror(0) return "Success"
This commit is contained in:
parent
4dd9c32c25
commit
e13152c0a5
|
@ -75,6 +75,8 @@ int spdylay_reserve_buffer(uint8_t **buf_ptr, size_t *buflen_ptr,
|
||||||
const char* spdylay_strerror(int error_code)
|
const char* spdylay_strerror(int error_code)
|
||||||
{
|
{
|
||||||
switch(error_code) {
|
switch(error_code) {
|
||||||
|
case 0:
|
||||||
|
return "Success";
|
||||||
case SPDYLAY_ERR_INVALID_ARGUMENT:
|
case SPDYLAY_ERR_INVALID_ARGUMENT:
|
||||||
return "Invalid argument";
|
return "Invalid argument";
|
||||||
case SPDYLAY_ERR_ZLIB:
|
case SPDYLAY_ERR_ZLIB:
|
||||||
|
|
Loading…
Reference in New Issue