]> The Tcpdump Group git mirrors - libpcap/commit
Cast HANDLE to intptr_t first.
authorBiswapriyo Nath <[email protected]>
Tue, 20 Jul 2021 10:22:12 +0000 (15:52 +0530)
committerGuy Harris <[email protected]>
Sun, 20 Feb 2022 22:53:12 +0000 (14:53 -0800)
commitbeb3c31c6139a8785374c89f07eae9ba271fee99
treedc5f60f116be02e9bc338b0afa75750fa8268bd7
parentfd3c16ce7638e4778528b66ef8e61ba1680454c2
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.

(cherry picked from commit 0614117b708b16dd3fa1b254f15fea391096b026)
pcap.c