X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/3594ff41d46df4ee23ae3d5f958d15f2b0477ebb..cc3ca65d6519faf3a0e4609b5150757c14af36e9:/pcap-null.c diff --git a/pcap-null.c b/pcap-null.c index 934fb2cc..b5fa3ab9 100644 --- a/pcap-null.c +++ b/pcap-null.c @@ -36,7 +36,7 @@ static char nosup[] = "live packet capture not supported on this system"; pcap_t * -pcap_create_interface(const char *device, char *ebuf) +pcap_create_interface(const char *device _U_, char *ebuf) { (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); return (NULL); @@ -45,5 +45,9 @@ pcap_create_interface(const char *device, char *ebuf) int pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) { + /* + * There are no interfaces on which we can capture. + */ + *alldevsp = NULL; return (0); }