aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
commitfd67586ef670a2ed181bb19d60619714f404aacc (patch)
treef13d1535caa6ff13d512d71ba8d1003c75f47cb8 /src/core/ngx_hunk.h
parentcde2478a8540b19d4c9f5077fae23803889ed393 (diff)
downloadnginx-fd67586ef670a2ed181bb19d60619714f404aacc.tar.gz
nginx-fd67586ef670a2ed181bb19d60619714f404aacc.zip
nginx-0.0.1-2003-04-11-20:01:14 import
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;