diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-02-23 01:07:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-02-23 01:07:54 +0000 |
commit | 75d3c1c4773b7b4e35db24ccf695788d871aba2e (patch) | |
tree | 833a5a8424487cdba248f146154fa3fbc565a471 /pjlib/src/pj/errno.c | |
parent | b9c4802224bd1772e144def6df556fbf0a3a71ed (diff) |
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
Diffstat (limited to 'pjlib/src/pj/errno.c')
-rw-r--r-- | pjlib/src/pj/errno.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |