]> git.kaiwu.me - nginx.git/commitdiff
merge r3037:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 11:26:40 +0000 (11:26 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 11:26:40 +0000 (11:26 +0000)
the flags should be bit-wide only

src/core/ngx_buf.h

index 8649bdb9e310c63ca8b8e810d047f863ba82f9fe..56e03992d84911c825e6f0d421978b82901fc775 100644 (file)
@@ -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;