From: Igor Sysoev Date: Sun, 23 Aug 2009 12:58:41 +0000 (+0000) Subject: the flags should be bit-wide only X-Git-Tag: release-0.8.10~4 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=f4f7d5e5f4522130a7787355cf09cdf48b60acb3;p=nginx.git the flags should be bit-wide only --- diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h index 8649bdb9e..56e03992d 100644 --- a/src/core/ngx_buf.h +++ b/src/core/ngx_buf.h @@ -75,13 +75,13 @@ typedef struct { ngx_chain_t *free; ngx_chain_t *busy; - unsigned sendfile; - unsigned directio; + unsigned sendfile:1; + unsigned directio:1; #if (NGX_HAVE_ALIGNED_DIRECTIO) - unsigned unaligned; + unsigned unaligned:1; #endif - unsigned need_in_memory; - unsigned need_in_temp; + unsigned need_in_memory:1; + unsigned need_in_temp:1; ngx_pool_t *pool; ngx_int_t allocated;