summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_string.c2
-rw-r--r--src/core/ngx_string.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c
index 0ac00174f..01d792f36 100644
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -1430,7 +1430,7 @@ ngx_escape_html(u_char *dst, u_char *src, size_t size)
void
ngx_sort(void *base, size_t n, size_t size,
- int (*cmp)(const void *, const void *))
+ ngx_int_t (*cmp)(const void *, const void *))
{
u_char *p1, *p2, *p;
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 4fe5cb604..00617f3b2 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -173,7 +173,7 @@ uintptr_t ngx_escape_html(u_char *dst, u_char *src, size_t size);
void ngx_sort(void *base, size_t n, size_t size,
- int (*cmp)(const void *, const void *));
+ ngx_int_t (*cmp)(const void *, const void *));
#define ngx_qsort qsort