Mercurial > hg > nginx
diff src/core/ngx_slab.c @ 4764:0ed8088f43b4
Reduced the number of preprocessor directives.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 26 Jul 2012 14:47:42 +0000 |
parents | d620f497c50f |
children | 40de49cf6b37 |
line wrap: on
line diff
--- a/src/core/ngx_slab.c +++ b/src/core/ngx_slab.c @@ -45,9 +45,7 @@ #define ngx_slab_junk(p, size) ngx_memset(p, 0xA5, size) -#else - -#if (NGX_HAVE_DEBUG_MALLOC) +#elif (NGX_HAVE_DEBUG_MALLOC) #define ngx_slab_junk(p, size) \ if (ngx_debug_malloc) ngx_memset(p, 0xA5, size) @@ -58,8 +56,6 @@ #endif -#endif - static ngx_slab_page_t *ngx_slab_alloc_pages(ngx_slab_pool_t *pool, ngx_uint_t pages); static void ngx_slab_free_pages(ngx_slab_pool_t *pool, ngx_slab_page_t *page,