Made spdylay_strerror(0) return "Success"

This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-25 14:44:25 +09:00
parent 4dd9c32c25
commit e13152c0a5
1 changed files with 2 additions and 0 deletions

View File

@ -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: