]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a signed vs. unsigned warning.
authorGuy Harris <[email protected]>
Wed, 14 Oct 2015 18:08:27 +0000 (11:08 -0700)
committerGuy Harris <[email protected]>
Wed, 14 Oct 2015 18:08:27 +0000 (11:08 -0700)
pcap-bt-linux.c

index 1e141757d4fc270295d88e8239de548fbdefdf2a..b7e01f914d5ef7593c18877604aaeab07c5cc78d 100644 (file)
@@ -304,10 +304,10 @@ bt_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *us
        ssize_t ret;
        struct pcap_pkthdr pkth;
        pcap_bluetooth_h4_header* bthdr;
-       char *pktd;
+       u_char *pktd;
        int in = 0;
 
-       pktd = (char *)handle->buffer + BT_CTRL_SIZE;
+       pktd = (u_char *)handle->buffer + BT_CTRL_SIZE;
        bthdr = (pcap_bluetooth_h4_header*)(void *)pktd;
        iv.iov_base = pktd + sizeof(pcap_bluetooth_h4_header);
        iv.iov_len  = handle->snapshot;