]> The Tcpdump Group git mirrors - libpcap/commit
Cast HANDLE to intptr_t first. 1026/head
authorBiswapriyo Nath <[email protected]>
Tue, 20 Jul 2021 10:22:12 +0000 (15:52 +0530)
committerBiswapriyo Nath <[email protected]>
Tue, 20 Jul 2021 10:22:17 +0000 (15:52 +0530)
commit0614117b708b16dd3fa1b254f15fea391096b026
tree3da62291e161d4bb7b2ea349490a03672d1e681e
parent1f25961a7817174876a044be20082670bbea4fb0
Cast HANDLE to intptr_t first.

In 64 bit system, pcap.handle is of type HANDLE aka. void* which is 8 bytes,
different that 4 bytes int. So, gcc shows warning while casting void* to int
like this warning: cast from pointer to integer of different size. This
change fixes that warning.
pcap.c