]> The Tcpdump Group git mirrors - libpcap/commit
Have a separate DIAG_OFF_ for pointer-to-integer narrowing.
authorGuy Harris <[email protected]>
Sun, 2 Jan 2022 06:56:18 +0000 (22:56 -0800)
committerGuy Harris <[email protected]>
Sun, 20 Feb 2022 23:44:17 +0000 (15:44 -0800)
commit52fc897b8794a7cc03597763b2d8f916c68743c5
treecc4f78511f3d5c4d03117cdbe93d44355e092c00
parentd7b1a974e29baccff045aecf2e7413a0639ce777
Have a separate DIAG_OFF_ for pointer-to-integer narrowing.

Use that for pcap_fileno() on Windows; that API shouldn't exist on
Windows, and should never be used, but WinPcap offered it, so we're
stuck with it.  At least try to prevent compilation errors when libpcap
is built.

This should fix the warnings for pcap_fileno() in GitHub issue #1026.

(backported from commit ea1928b35bddea69b8843161f2f8dbff54c0d74e)
diag-control.h
pcap.c