diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
commit | 025be3f592b920ff0a3e602e5aa8b60a34e5e617 (patch) | |
tree | 4f33277584e4a38c8bad5c2788584a00cf830ea4 /pcap-null.c | |
parent | 6b96668d5b49eea57b7551349eca70928cc199ce (diff) |
Diffstat (limited to 'pcap-null.c')
-rw-r--r-- | pcap-null.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pcap-null.c b/pcap-null.c index 2ae27bf8226e..f0e35ec8b94a 100644 --- a/pcap-null.c +++ b/pcap-null.c @@ -19,9 +19,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <string.h> @@ -30,14 +28,14 @@ static char nosup[] = "live packet capture not supported on this system"; pcap_t * -pcap_create_interface(const char *device _U_, char *ebuf) +pcapint_create_interface(const char *device _U_, char *ebuf) { - (void)pcap_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); + (void)pcapint_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); return (NULL); } int -pcap_platform_finddevs(pcap_if_list_t *devlistp _U_, char *errbuf _U_) +pcapint_platform_finddevs(pcap_if_list_t *devlistp _U_, char *errbuf _U_) { /* * There are no interfaces on which we can capture. @@ -50,7 +48,7 @@ int pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_, bpf_u_int32 *maskp _U_, char *errbuf) { - (void)pcap_strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE); + (void)pcapint_strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE); return (-1); } #endif |