diff options
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 |