diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-12 19:41:38 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-12 20:18:59 -0700 |
commit | 10d7a3c17283fb3f97753a3f291468af774e871f (patch) | |
tree | b3f58cc7a6f66e250149dc47f2afb8366d403c9d /pcap-bt-linux.c | |
parent | 5a3f2a9ec54a06ac925cf7f394038ac1212d9e56 (diff) |
Squelch more narrowing warnings.
Diffstat (limited to 'pcap-bt-linux.c')
-rw-r--r-- | pcap-bt-linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c index 0c21d9c1..a0765b5b 100644 --- a/pcap-bt-linux.c +++ b/pcap-bt-linux.c @@ -58,7 +58,7 @@ /* forward declaration */ static int bt_activate(pcap_t *); static int bt_read_linux(pcap_t *, int , pcap_handler , u_char *); -static int bt_inject_linux(pcap_t *, const void *, size_t); +static int bt_inject_linux(pcap_t *, const void *, int); static int bt_setdirection_linux(pcap_t *, pcap_direction_t); static int bt_stats_linux(pcap_t *, struct pcap_stat *); @@ -346,7 +346,7 @@ bt_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char return -1; } - pkth.caplen = ret; + pkth.caplen = (bpf_u_int32)ret; /* get direction and timestamp*/ cmsg = CMSG_FIRSTHDR(&msg); @@ -378,7 +378,7 @@ bt_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char } static int -bt_inject_linux(pcap_t *handle, const void *buf _U_, size_t size _U_) +bt_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) { pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "inject not supported on " "bluetooth devices"); |