Changeset 330 for pjproject/trunk/pjsip/src/pjsip/sip_errno.c
- Timestamp:
- Mar 18, 2006 12:26:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_errno.c
r315 r330 25 25 * MUST KEEP THIS ARRAY SORTED!! 26 26 */ 27 28 #if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 29 27 30 static const struct 28 31 { … … 92 95 93 96 97 #endif /* PJ_HAS_ERROR_STRING */ 98 99 94 100 /* 95 101 * pjsip_strerror() … … 99 105 { 100 106 pj_str_t errstr; 107 108 #if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 101 109 102 110 if (statcode >= PJSIP_ERRNO_START && statcode < PJSIP_ERRNO_START+800) … … 145 153 return errstr; 146 154 147 } else { 148 /* Error not found. */ 149 errstr.ptr = buf; 150 errstr.slen = pj_ansi_snprintf(buf, bufsize, 151 "Unknown error %d", 152 statcode); 155 } 156 } 153 157 154 return errstr; 155 } 156 } 157 else { 158 /* Not our code. Give it to PJLIB. */ 159 return pj_strerror(statcode, buf, bufsize); 160 } 158 #endif /* PJ_HAS_ERROR_STRING */ 159 160 /* Error not found. */ 161 errstr.ptr = buf; 162 errstr.slen = pj_ansi_snprintf(buf, bufsize, 163 "Unknown pjsip error %d", 164 statcode); 165 166 return errstr; 161 167 162 168 }
Note: See TracChangeset
for help on using the changeset viewer.