Fix compilation error with memchr() on VS2005

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@790 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2006-11-01 07:13:45 +00:00
parent 646b7b7456
commit 33cb24a868
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}