tcptraceroute icon indicating copy to clipboard operation
tcptraceroute copied to clipboard

pcap_lookupdev() is deprecated

Open Ndolam opened this issue 2 years ago • 0 comments

Compiling on Slackware64 15.0

main.c: In function ‘defaults’: main.c:73:17: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 73 | device = pcap_lookupdev(errbuf); | ^~~~~~ In file included from /usr/include/pcap.h:43, from tcptraceroute.h:38, from main.c:23: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~

It compiles anyway, but just in case you wish to follow gcc's advice...

Ndolam avatar Jan 02 '23 14:01 Ndolam