summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-03-24 13:04:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-03-24 13:04:02 +0000
commitde8ec1efc8fae8f4e86a518c1c86225b9ba62de6 (patch)
tree1ba5aaa3099dcbc18f7248657ea8c0276f4e6964 /src/core
parent8634118bc82c8f9a5b43abe863edcee24aa878a8 (diff)
downloadnginx-de8ec1efc8fae8f4e86a518c1c86225b9ba62de6.tar.gz
nginx-de8ec1efc8fae8f4e86a518c1c86225b9ba62de6.tar.bz2
use ngx_int_t in ngx_sort() callback
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