diff options
author | João Valverde <j@v6e.pt> | 2021-12-20 02:33:15 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-12-21 01:30:06 +0000 |
commit | 4448b6494e0f6bece719160e652fb872be32eb21 (patch) | |
tree | de9c76bc675e57391e72370ff5479fa08590c9c6 /wiretap/file_wrappers.c | |
parent | 36d5aad962f6c481a4aed09a0a8f7a575fcbdd12 (diff) |
Add a ws_posix_compat.h header
Currently used to define ssize_t on platforms that lack it.
Fix some Windows build errors caused by moving the definition into a
separate header.
Fix some narrowing warnings on Windows x64 from changing the definition
of ssize_t from long int to int64_t.
The casts in dumpcap are ugly but necessary. The whole code needs
to be rewritten for portability, or the warnings disabled.
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r-- | wiretap/file_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c index 337010d625..a513389648 100644 --- a/wiretap/file_wrappers.c +++ b/wiretap/file_wrappers.c @@ -275,7 +275,7 @@ buf_read(FILE_T state, struct wtap_reader_buf *buf) if (ret == 0) state->eof = TRUE; state->raw_pos += ret; - buf->avail += ret; + buf->avail += (guint)ret; return 0; } |