diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 0e1106c..d86e2d7 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -231,17 +231,17 @@ typedef struct { static ngx_int_t ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_dirs_first(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_name_desc(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_size_desc(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_mtime_desc(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_name_asc(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_size_asc(const void *one, const void *two); -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_mtime_asc(const void *one, const void *two); static ngx_int_t ngx_http_fancyindex_error(ngx_http_request_t *r, @@ -567,7 +567,7 @@ make_content_buf( { ngx_http_fancyindex_entry_t *entry; - ngx_int_t (*sort_cmp_func) (const void*, const void*); + int (*sort_cmp_func)(const void *, const void *); const char *sort_url_args = ""; off_t length; @@ -1252,7 +1252,7 @@ ngx_http_fancyindex_cmp_entries_dirs_first(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_name_desc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one; @@ -1262,7 +1262,7 @@ ngx_http_fancyindex_cmp_entries_name_desc(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_size_desc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one; @@ -1272,7 +1272,7 @@ ngx_http_fancyindex_cmp_entries_size_desc(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_mtime_desc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one; @@ -1282,7 +1282,7 @@ ngx_http_fancyindex_cmp_entries_mtime_desc(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_name_asc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one; @@ -1292,7 +1292,7 @@ ngx_http_fancyindex_cmp_entries_name_asc(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_size_asc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one; @@ -1302,7 +1302,7 @@ ngx_http_fancyindex_cmp_entries_size_asc(const void *one, const void *two) } -static ngx_int_t ngx_libc_cdecl +static int ngx_libc_cdecl ngx_http_fancyindex_cmp_entries_mtime_asc(const void *one, const void *two) { ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one;