Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-02 18:50:19 +0400
committerIgor Sysoev <igor@sysoev.ru>2006-10-02 18:50:19 +0400
commitcc05432bf4e58ec53c64a5d11737608d1b44a2e8 (patch)
treef58dd20b1c49c79f0cb32bb4644fa86e11012f32 /src/os/unix/ngx_files.c
parent0e4a95dfe398c4e7ce86e5b0698d59ac281591b0 (diff)
fix building on Linux and Solaris
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r--src/os/unix/ngx_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
index 12e595ee8..50db532b6 100644
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -256,7 +256,7 @@ ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir)
ngx_int_t
ngx_open_glob(ngx_glob_t *gl)
{
- if (glob((char *) gl->pattern, 0, NULL, &gl->pglob) == 0) {
+ if (glob((char *) gl->pattern, GLOB_NOSORT, NULL, &gl->pglob) == 0) {
return NGX_OK;
}
@@ -267,7 +267,7 @@ ngx_open_glob(ngx_glob_t *gl)
ngx_int_t
ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name)
{
- if (gl->n < gl->pglob.gl_pathc) {
+ if (gl->n < (size_t) gl->pglob.gl_pathc) {
name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]);
name->data = (u_char *) gl->pglob.gl_pathv[gl->n];