diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-05-17 17:46:43 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-05-18 04:10:47 +0000 |
commit | c57695a13e5e02d428607d57b81a8c1f96575781 (patch) | |
tree | 9bcb6befd2cca14603ed2c72e445c3949e61ab8b /extcap | |
parent | 0937979a616acba17a97cfba4f51d8dfd6800aa9 (diff) |
dpauxmon: remove precision loss in dump_packet.
../extcap/dpauxmon.c:129:72: warning: implicit conversion loses integer
precision: 'const ssize_t' (aka 'const long') to 'guint32' (aka 'unsigned
int') [-Wshorten-64-to-32]
Change-Id: If835baec3c51eecd4aff9ad7dab052192de78455
Reviewed-on: https://code.wireshark.org/review/27616
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/dpauxmon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap/dpauxmon.c b/extcap/dpauxmon.c index fd37ad5d8f..6cd1ccd35f 100644 --- a/extcap/dpauxmon.c +++ b/extcap/dpauxmon.c @@ -120,7 +120,7 @@ static int setup_dumpfile(const char* fifo, FILE** fp) return EXIT_SUCCESS; } -static int dump_packet(FILE* fp, const char* buf, const ssize_t buflen, guint64 ts_usecs) +static int dump_packet(FILE* fp, const char* buf, const guint32 buflen, guint64 ts_usecs) { guint64 bytes_written = 0; int err; @@ -328,7 +328,7 @@ static int handle_data(struct nl_cache_ops *unused _U_, struct genl_cmd *cmd _U_ struct genl_info *info, void *arg _U_) { unsigned char *data; - int data_size; + guint32 data_size; guint64 ts = 0; guint8 packet[21] = { 0x00 }; |