about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmogstored.h')
-rw-r--r--cmogstored.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/cmogstored.h b/cmogstored.h
index e72c071..1681e1e 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -169,24 +169,26 @@ enum mog_chunk_state {
 
 struct mog_http {
         int cs;
-        enum mog_http_method http_method:8;
-        unsigned persistent:1;
-        unsigned chunked:1;
-        unsigned has_trailer_md5:1;
-        unsigned has_expect_md5:1;
-        unsigned has_content_range:1; /* for PUT */
-        unsigned has_range:1;         /* for GET */
-        unsigned skip_rbuf_defer:1;
-        enum mog_chunk_state chunk_state:2;
-        uint8_t path_tip;
-        uint8_t path_end;
-        uint16_t line_end;
-        uint16_t tmp_tip;
+        struct {
+                enum mog_http_method http_method:8;
+                unsigned persistent:1;
+                unsigned chunked:1;
+                unsigned has_trailer_md5:1;
+                unsigned has_expect_md5:1;
+                unsigned has_content_range:1; /* for PUT */
+                unsigned has_range:1;         /* for GET */
+                unsigned skip_rbuf_defer:1;
+                enum mog_chunk_state chunk_state:2;
+                uint8_t path_tip;
+                uint8_t path_end;
+                uint16_t line_end;
+                uint16_t tmp_tip;
+                size_t offset;
+                off_t range_beg;
+                off_t range_end;
+                off_t content_len;
+        } _p;
         struct mog_fd *forward;
-        size_t offset;
-        off_t range_beg;
-        off_t range_end;
-        off_t content_len;
         struct mog_rbuf *rbuf;
         struct mog_wbuf *wbuf; /* uncommonly needed */
         struct mog_svc *svc;