]> git.kaiwu.me - nginx.git/commitdiff
update ngx_memcmp()
authorIgor Sysoev <igor@sysoev.ru>
Fri, 23 Nov 2007 17:00:11 +0000 (17:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 23 Nov 2007 17:00:11 +0000 (17:00 +0000)
src/core/ngx_string.h

index 275c8db5ed893a8c1b767ec24a0163e61ca44013..1bca791bf974b8feadad343d602bad4a4706e195 100644 (file)
@@ -114,7 +114,7 @@ ngx_copy(u_char *dst, u_char *src, size_t len)
 
 
 /* msvc and icc7 compile memcmp() to the inline loop */
-#define ngx_memcmp                memcmp
+#define ngx_memcmp(s1, s2, n)  memcmp((const char *) s1, (const char *) s2, n)
 
 
 u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n);