aboutsummaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzwrite.c')
-rw-r--r--gzwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gzwrite.c b/gzwrite.c
index acea74fe..18c820e2 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -77,7 +77,7 @@ local int gz_comp(gz_statep state, int flush) {
77 errno = 0; 77 errno = 0;
78 state->again = 0; 78 state->again = 0;
79 put = strm->avail_in > max ? max : strm->avail_in; 79 put = strm->avail_in > max ? max : strm->avail_in;
80 writ = write(state->fd, strm->next_in, put); 80 writ = (int)write(state->fd, strm->next_in, put);
81 if (writ < 0) { 81 if (writ < 0) {
82 if (errno == EAGAIN || errno == EWOULDBLOCK) 82 if (errno == EAGAIN || errno == EWOULDBLOCK)
83 state->again = 1; 83 state->again = 1;
@@ -112,7 +112,7 @@ local int gz_comp(gz_statep state, int flush) {
112 state->again = 0; 112 state->again = 0;
113 put = strm->next_out - state->x.next > (int)max ? max : 113 put = strm->next_out - state->x.next > (int)max ? max :
114 (unsigned)(strm->next_out - state->x.next); 114 (unsigned)(strm->next_out - state->x.next);
115 writ = write(state->fd, state->x.next, put); 115 writ = (int)write(state->fd, state->x.next, put);
116 if (writ < 0) { 116 if (writ < 0) {
117 if (errno == EAGAIN || errno == EWOULDBLOCK) 117 if (errno == EAGAIN || errno == EWOULDBLOCK)
118 state->again = 1; 118 state->again = 1;