Remove compiler warnings if built with DONT_USE_PCAP_FINDALLDEVS
This commit is contained in:
parent
2df727b701
commit
0c4b62fe82
1 changed files with 2 additions and 2 deletions
|
@ -2608,12 +2608,12 @@ int eth_host_devices(int used, int max, ETH_LIST* list)
|
||||||
|
|
||||||
int eth_devices(int max, ETH_LIST* list)
|
int eth_devices(int max, ETH_LIST* list)
|
||||||
{
|
{
|
||||||
|
int i = 0;
|
||||||
|
#ifndef DONT_USE_PCAP_FINDALLDEVS
|
||||||
pcap_if_t* alldevs;
|
pcap_if_t* alldevs;
|
||||||
pcap_if_t* dev;
|
pcap_if_t* dev;
|
||||||
int i = 0;
|
|
||||||
char errbuf[PCAP_ERRBUF_SIZE];
|
char errbuf[PCAP_ERRBUF_SIZE];
|
||||||
|
|
||||||
#ifndef DONT_USE_PCAP_FINDALLDEVS
|
|
||||||
/* retrieve the device list */
|
/* retrieve the device list */
|
||||||
if (pcap_findalldevs(&alldevs, errbuf) == -1) {
|
if (pcap_findalldevs(&alldevs, errbuf) == -1) {
|
||||||
char* msg = "Eth: error in pcap_findalldevs: %s\r\n";
|
char* msg = "Eth: error in pcap_findalldevs: %s\r\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue