]> The Tcpdump Group git mirrors - libpcap/commitdiff
Packet.dll defines ADAPTER, not Adapter.
authorGuy Harris <[email protected]>
Mon, 31 Aug 2015 21:58:41 +0000 (14:58 -0700)
committerGuy Harris <[email protected]>
Mon, 31 Aug 2015 21:58:41 +0000 (14:58 -0700)
Fix type name.

pcap-int.h
pcap-win32.c
pcap.c
pcap/pcap.h

index d0306b80e3b1056002e96f56b796d7a3a7775aa8..f086360c3a3fd239b02067f2d292ef8137e3f2de 100644 (file)
@@ -130,7 +130,7 @@ typedef int (*stats_op_t)(pcap_t *, struct pcap_stat *);
 typedef int    (*setbuff_op_t)(pcap_t *, int);
 typedef int    (*setmode_op_t)(pcap_t *, int);
 typedef int    (*setmintocopy_op_t)(pcap_t *, int);
-typedef Adapter *(*getadapter_op_t)(pcap_t *);
+typedef ADAPTER *(*getadapter_op_t)(pcap_t *);
 #endif
 typedef void   (*cleanup_op_t)(pcap_t *);
 
index 7457df36354a2c4537542116ba9627a579f4986d..84e2dda4ed2eaf31e4411244b68f742e4e45f835 100644 (file)
@@ -184,8 +184,8 @@ pcap_setmintocopy_win32(pcap_t *p, int size)
        return 0;
 }
 
-/*return the Adapter for a pcap_t*/
-static Adapter *
+/*return the ADAPTER for a pcap_t*/
+static ADAPTER *
 pcap_getadapter_win32(pcap_t *p)
 {
        return p->adapter;
diff --git a/pcap.c b/pcap.c
index 7769569d601cd2cbd0d129c857ada22ff39c6506..438e67ef1426d3c3753557db069d2ad288bd93e5 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -116,7 +116,7 @@ pcap_not_initialized(pcap_t *pcap _U_)
 }
 
 #ifdef _WIN32
-Adapter *
+ADAPTER *
 pcap_no_adapter(pcap_t *pcap _U_)
 {
        return (NULL);
@@ -1670,7 +1670,7 @@ pcap_setmintocopy(pcap_t *p, int size)
        return (p->setmintocopy_op(p, size));
 }
 
-Adapter *
+ADAPTER *
 pcap_get_adapter(pcap_t *p)
 {
        return (p->getadapter_op(p));
index 045e4872db7c902a03917f9b9e4fb3a9240de60b..e328fa839e965809527e8558c1d7a32b1db23442 100644 (file)
@@ -447,7 +447,7 @@ void        bpf_dump(const struct bpf_program *, int);
 int pcap_setbuff(pcap_t *p, int dim);
 int pcap_setmode(pcap_t *p, int mode);
 int pcap_setmintocopy(pcap_t *p, int size);
-Adapter *pcap_get_adapter(pcap_t *p);
+ADAPTER *pcap_get_adapter(pcap_t *p);
 
 #ifdef WPCAP
 /* Include file with the wpcap-specific extensions */