aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r--src/core/ngx_hunk.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 32e5c405e..de691f84d 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -34,20 +34,8 @@
-
typedef struct ngx_hunk_s ngx_hunk_t;
struct ngx_hunk_s {
-#if 0
- union {
- char *mem; /* start of current data */
- off_t file;
- } pos;
- union {
- char *mem; /* end of current data */
- off_t file;
- } last;
-#endif
-
char *pos;
char *last;
off_t file_pos;
@@ -60,10 +48,10 @@ struct ngx_hunk_s {
char *post_end; /* end of post-allocated hunk */
int tag;
ngx_file_t *file;
+ ngx_hunk_t *shadow;
};
-
typedef struct ngx_chain_s ngx_chain_t;
struct ngx_chain_s {
ngx_hunk_t *hunk;