diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-09-13 22:48:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-09-13 22:48:37 +0000 |
commit | a0fe9be8add2f491e7c41fbbbee565921a02acc1 (patch) | |
tree | 2edce42628732598162e316679f89ca7b60c8ebb /pjlib/include | |
parent | b6b6ff95f348d4812f1b274141eb290cb849980e (diff) |
SIP methods are now compared case-sensitively (previously it was case-insensitive) because the standard says so. There's no ill effect of the old behavior, but it's still important that we do things according to what the standard says.
Also a little change in string implementation (use memcmp() instead of strncmp()), an increase the version number from 0.5.7.6 to 0.5.7.7.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@713 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r-- | pjlib/include/pj/string_i.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pjlib/include/pj/string_i.h b/pjlib/include/pj/string_i.h index 57cae7ba..4cc3c119 100644 --- a/pjlib/include/pj/string_i.h +++ b/pjlib/include/pj/string_i.h @@ -141,7 +141,7 @@ PJ_IDEF(int) pj_strcmp( const pj_str_t *str1, const pj_str_t *str2) if (diff) { return diff > 0 ? 1 : -1; } else if (str1->ptr && str1->slen) { - return pj_ansi_strncmp(str1->ptr, str2->ptr, str1->slen); + return memcmp(str1->ptr, str2->ptr, str1->slen); } else { return 0; } @@ -151,7 +151,7 @@ PJ_IDEF(int) pj_strncmp( const pj_str_t *str1, const pj_str_t *str2, pj_size_t len) { if (str1->ptr && str2->ptr) - return pj_ansi_strncmp(str1->ptr, str2->ptr, len); + return memcmp(str1->ptr, str2->ptr, len); else if (str2->ptr) return str2->slen==0 ? 0 : -1; else if (str1->ptr) @@ -166,7 +166,7 @@ PJ_IDEF(int) pj_strncmp2( const pj_str_t *str1, const char *str2, if (len == 0) return 0; else if (str1->ptr && str2) - return pj_ansi_strncmp(str1->ptr, str2, len); + return memcmp(str1->ptr, str2, len); else if (str1->ptr) return str1->slen==0 ? 0 : 1; else if (str2) |