summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_hunk.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-30 16:51:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-30 16:51:33 +0000
commitb5910d497e51bac754b0a5bdbd58318b653e0859 (patch)
tree332719a81bd2b8c7efb7ad5a1077d9c36bc879b5 /src/core/ngx_hunk.h
parent68ee8f144242965c9650ad99604d1717c0f84c18 (diff)
downloadnginx-b5910d497e51bac754b0a5bdbd58318b653e0859.tar.gz
nginx-b5910d497e51bac754b0a5bdbd58318b653e0859.tar.bz2
nginx-0.0.1-2003-10-30-19:51:33 import
Diffstat (limited to 'src/core/ngx_hunk.h')
-rw-r--r--src/core/ngx_hunk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 3de78aa20..e68ba6d22 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -67,7 +67,7 @@ struct ngx_chain_s {
typedef struct {
int num;
- ssize_t size;
+ size_t size;
} ngx_bufs_t;
@@ -117,8 +117,8 @@ typedef struct {
#define ngx_hunk_size(h) \
- ((h->type & NGX_HUNK_IN_MEMORY) ? h->last - h->pos: \
- (size_t) (h->file_last - h->file_pos))
+ ((h->type & NGX_HUNK_IN_MEMORY) ? (size_t) (h->last - h->pos): \
+ (size_t) (h->file_last - h->file_pos))
ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size);