1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-08-13 17:03:54 -04:00

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

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)
{
switch(error_code) {
case 0:
return "Success";
case SPDYLAY_ERR_INVALID_ARGUMENT:
return "Invalid argument";
case SPDYLAY_ERR_ZLIB: