aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_wrappers.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-12-21 18:59:42 +0000
committerGerald Combs <gerald@wireshark.org>2012-12-21 18:59:42 +0000
commit7b55219d1a3f7fa6173a6835bbac4d93a099102f (patch)
tree6551597a5c2bb94cfa24e9fcdc8beca2744a0b1b /wiretap/file_wrappers.c
parentd6d3b1b6761cb1d56d4abbeeedacfae5abbf366d (diff)
Microsoft CRT's _write expects an unsigned int.
svn path=/trunk/; revision=46684
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r--wiretap/file_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
index 0489466cc5..4cb2c36eff 100644
--- a/wiretap/file_wrappers.c
+++ b/wiretap/file_wrappers.c
@@ -1494,7 +1494,7 @@ gz_comp(GZWFILE_T state, int flush)
(flush != Z_FINISH || ret == Z_STREAM_END))) {
have = strm->next_out - state->next;
if (have) {
- got = write(state->fd, state->next, (size_t)have);
+ got = write(state->fd, state->next, (unsigned int)have);
if (got < 0) {
state->err = errno;
return -1;