diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-11-01 07:13:45 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-11-01 07:13:45 +0000 |
commit | eb8b86a1fda42af9d759839483cefeffd045ae98 (patch) | |
tree | 00ce8734eb0729b3586a54d55bcf4fe65bb0ead5 /pjlib | |
parent | 3d1b2c76b3d30c75642f045de76dae8bc6384114 (diff) |
Fix compilation error with memchr() on VS2005
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@790 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/include/pj/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/include/pj/string.h b/pjlib/include/pj/string.h index 78926cb7..3eb2ee1e 100644 --- a/pjlib/include/pj/string.h +++ b/pjlib/include/pj/string.h @@ -468,7 +468,7 @@ PJ_IDECL(void) pj_strcat2(pj_str_t *dst, const char *src); */ PJ_INLINE(char*) pj_strchr( const pj_str_t *str, int chr) { - return (char*) memchr(str->ptr, chr, str->slen); + return (char*) memchr((char*)str->ptr, chr, str->slen); } /** @@ -628,7 +628,7 @@ PJ_INLINE(int) pj_memcmp(const void *buf1, const void *buf2, pj_size_t size) */ PJ_INLINE(void*) pj_memchr(const void *buf, int c, pj_size_t size) { - return memchr(buf, c, size); + return (void*)memchr((void*)buf, c, size); } |