From 75d3c1c4773b7b4e35db24ccf695788d871aba2e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 23 Feb 2007 01:07:54 +0000 Subject: Ticket #121 and #122: Initial implementation of generic STUN transaction, with Binding request as an example git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@996 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/errno.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pjlib') diff --git a/pjlib/src/pj/errno.c b/pjlib/src/pj/errno.c index 171c0603..7745dfd2 100644 --- a/pjlib/src/pj/errno.c +++ b/pjlib/src/pj/errno.c @@ -152,7 +152,10 @@ PJ_DEF(pj_str_t) pj_strerror( pj_status_t statcode, pj_assert(buf && bufsize); - if (statcode < PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE) { + if (statcode == PJ_SUCCESS) { + len = pj_ansi_snprintf( buf, bufsize, "Success"); + + } else if (statcode < PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE) { len = pj_ansi_snprintf( buf, bufsize, "Unknown error %d", statcode); } else if (statcode < PJ_ERRNO_START_STATUS + PJ_ERRNO_SPACE_SIZE) { -- cgit v1.2.3