diff options
Diffstat (limited to 'pcap-null.c')
-rw-r--r-- | pcap-null.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pcap-null.c b/pcap-null.c index 934fb2cc061c..b5fa3ab91fab 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); } |